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
9e809b20
Commit
9e809b20
authored
Mar 10, 2016
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #290 from dtmuller/add-set-runnable
Add missing isRunnable implementation
parents
8e0686e1
2225d331
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
async.c++
c++/src/kj/async.c++
+6
-2
No files found.
c++/src/kj/async.c++
View file @
9e809b20
...
...
@@ -253,7 +253,7 @@ void EventLoop::run(uint maxTurnCount) {
}
}
setRunnable
(
head
!=
nullptr
);
setRunnable
(
isRunnable
()
);
}
bool
EventLoop
::
turn
()
{
...
...
@@ -288,6 +288,10 @@ bool EventLoop::turn() {
}
}
bool
EventLoop
::
isRunnable
()
{
return
head
!=
nullptr
;
}
void
EventLoop
::
setRunnable
(
bool
runnable
)
{
if
(
runnable
!=
lastRunnableState
)
{
port
.
setRunnable
(
runnable
);
...
...
@@ -329,7 +333,7 @@ void waitImpl(Own<_::PromiseNode>&& node, _::ExceptionOrValue& result, WaitScope
}
}
loop
.
setRunnable
(
loop
.
head
!=
nullptr
);
loop
.
setRunnable
(
loop
.
isRunnable
()
);
node
->
get
(
result
);
KJ_IF_MAYBE
(
exception
,
kj
::
runCatchingExceptions
([
&
]()
{
...
...
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