Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
d10938a0
Commit
d10938a0
authored
Jul 04, 2019
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix -Werror build.
parent
efb38296
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
async.c++
c++/src/kj/async.c++
+3
-3
No files found.
c++/src/kj/async.c++
View file @
d10938a0
...
@@ -367,13 +367,13 @@ struct Executor::Impl {
...
@@ -367,13 +367,13 @@ struct Executor::Impl {
cancel
.
forEach
([
&
](
_
::
XThreadEvent
&
event
)
{
cancel
.
forEach
([
&
](
_
::
XThreadEvent
&
event
)
{
cancel
.
erase
(
event
);
cancel
.
erase
(
event
);
KJ_IF_MAYBE
(
n
,
event
.
promiseNode
)
{
if
(
event
.
promiseNode
==
nullptr
)
{
event
.
state
=
_
::
XThreadEvent
::
DONE
;
}
else
{
// We can't destroy the promiseNode while the mutex is locked, because we don't know
// We can't destroy the promiseNode while the mutex is locked, because we don't know
// what the destructor might do. But, we *must* destroy it before acknowledging
// what the destructor might do. But, we *must* destroy it before acknowledging
// cancellation. So we have to add it to a list to destroy later.
// cancellation. So we have to add it to a list to destroy later.
eventsToCancelOutsideLock
.
add
(
&
event
);
eventsToCancelOutsideLock
.
add
(
&
event
);
}
else
{
event
.
state
=
_
::
XThreadEvent
::
DONE
;
}
}
});
});
}
}
...
...
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