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
820eed43
Commit
820eed43
authored
Dec 28, 2015
by
David Renshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drained -> disconnect
parent
13d50c27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
rpc-twoparty.h
c++/src/capnp/rpc-twoparty.h
+4
-3
No files found.
c++/src/capnp/rpc-twoparty.h
View file @
820eed43
...
@@ -90,8 +90,9 @@ private:
...
@@ -90,8 +90,9 @@ private:
class
FulfillerDisposer
:
public
kj
::
Disposer
{
class
FulfillerDisposer
:
public
kj
::
Disposer
{
// Hack: TwoPartyVatNetwork is both a VatNetwork and a VatNetwork::Connection. When the RPC
// Hack: TwoPartyVatNetwork is both a VatNetwork and a VatNetwork::Connection. When the RPC
// system detects (or initiates) a disconnection, it drops its reference to the Connection.
// system detects (or initiates) a disconnection, it drops its reference to the Connection.
// When all references have been dropped, then we want onDrained() to fire. So we hand out
// When all references have been dropped, then we want disconnectPromise to be fulfilled.
// Own<Connection>s with this disposer attached, so that we can detect when they are dropped.
// So we hand out Own<Connection>s with this disposer attached, so that we can detect when
// they are dropped.
public
:
public
:
mutable
kj
::
Own
<
kj
::
PromiseFulfiller
<
void
>>
fulfiller
;
mutable
kj
::
Own
<
kj
::
PromiseFulfiller
<
void
>>
fulfiller
;
...
@@ -102,7 +103,7 @@ private:
...
@@ -102,7 +103,7 @@ private:
FulfillerDisposer
disconnectFulfiller
;
FulfillerDisposer
disconnectFulfiller
;
kj
::
Own
<
TwoPartyVatNetworkBase
::
Connection
>
asConnection
();
kj
::
Own
<
TwoPartyVatNetworkBase
::
Connection
>
asConnection
();
// Returns a pointer to this with the disposer set to d
rained
Fulfiller.
// Returns a pointer to this with the disposer set to d
isconnect
Fulfiller.
// implements Connection -----------------------------------------------------
// implements Connection -----------------------------------------------------
...
...
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