Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
actor-incubator
Commits
17def710
Commit
17def710
authored
Nov 06, 2019
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup transport_worker_dispatcher
parent
d9d2971c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
libcaf_net/caf/net/transport_worker_dispatcher.hpp
libcaf_net/caf/net/transport_worker_dispatcher.hpp
+8
-7
No files found.
libcaf_net/caf/net/transport_worker_dispatcher.hpp
View file @
17def710
...
@@ -98,11 +98,11 @@ public:
...
@@ -98,11 +98,11 @@ public:
template
<
class
Parent
>
template
<
class
Parent
>
void
resolve
(
Parent
&
parent
,
const
uri
&
locator
,
const
actor
&
listener
)
{
void
resolve
(
Parent
&
parent
,
const
uri
&
locator
,
const
actor
&
listener
)
{
auto
worker
=
find_worker
(
make_node_id
(
locator
));
if
(
auto
worker
=
find_worker
(
make_node_id
(
locator
)))
if
(
worker
==
nullptr
)
worker
->
resolve
(
parent
,
locator
.
path
(),
listener
);
else
anon_send
(
listener
,
anon_send
(
listener
,
make_error
(
sec
::
runtime_error
,
"could not resolve node"
));
make_error
(
sec
::
runtime_error
,
"could not resolve node"
));
worker
->
resolve
(
parent
,
locator
.
path
(),
listener
);
}
}
template
<
class
Parent
>
template
<
class
Parent
>
...
@@ -125,9 +125,10 @@ public:
...
@@ -125,9 +125,10 @@ public:
template
<
class
Parent
>
template
<
class
Parent
>
void
timeout
(
Parent
&
parent
,
atom_value
value
,
uint64_t
id
)
{
void
timeout
(
Parent
&
parent
,
atom_value
value
,
uint64_t
id
)
{
auto
worker
=
workers_by_timeout_id_
.
at
(
id
);
if
(
auto
worker
=
workers_by_timeout_id_
.
at
(
id
))
{
worker
->
timeout
(
parent
,
value
,
id
);
worker
->
timeout
(
parent
,
value
,
id
);
workers_by_timeout_id_
.
erase
(
id
);
workers_by_timeout_id_
.
erase
(
id
);
}
}
}
void
handle_error
(
sec
error
)
{
void
handle_error
(
sec
error
)
{
...
@@ -176,7 +177,7 @@ private:
...
@@ -176,7 +177,7 @@ private:
factory_type
factory_
;
factory_type
factory_
;
transport_type
*
transport_
;
transport_type
*
transport_
;
};
// namespace net
};
}
// namespace net
}
// namespace net
}
// namespace caf
}
// namespace caf
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