Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
bcb39362
Commit
bcb39362
authored
May 30, 2023
by
Shen-Ta Hsieh
Committed by
Max Kellermann
Jun 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32/ComWorker: rename variable name to prevent ambiguous
parent
18d3a5c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ComWorker.hxx
src/win32/ComWorker.hxx
+6
-6
No files found.
src/win32/ComWorker.hxx
View file @
bcb39362
...
...
@@ -52,17 +52,17 @@ public:
using
R
=
std
::
invoke_result_t
<
std
::
decay_t
<
Function
>>
;
auto
promise
=
std
::
make_shared
<
Promise
<
R
>>
();
auto
future
=
promise
->
get_future
();
Push
([
func
tion
=
std
::
forward
<
Function
>
(
function
),
prom
ise
=
std
::
move
(
promise
)]()
mutable
{
Push
([
func
=
std
::
forward
<
Function
>
(
function
),
prom
=
std
::
move
(
promise
)]()
mutable
{
try
{
if
constexpr
(
std
::
is_void_v
<
R
>
)
{
std
::
invoke
(
std
::
forward
<
Function
>
(
func
tion
));
prom
ise
->
set_value
();
std
::
invoke
(
std
::
forward
<
Function
>
(
func
));
prom
->
set_value
();
}
else
{
prom
ise
->
set_value
(
std
::
invoke
(
std
::
forward
<
Function
>
(
function
)));
prom
->
set_value
(
std
::
invoke
(
std
::
forward
<
Function
>
(
func
)));
}
}
catch
(...)
{
prom
ise
->
set_exception
(
std
::
current_exception
());
prom
->
set_exception
(
std
::
current_exception
());
}
});
return
future
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment