Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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 Framework
Commits
e4fb896c
Commit
e4fb896c
authored
Feb 12, 2019
by
Dominik Charousset
Committed by
Dominik Charousset
Feb 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove proxy_registry::backend::registry_context
parent
7cbbfbb6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
11 deletions
+1
-11
libcaf_core/caf/proxy_registry.hpp
libcaf_core/caf/proxy_registry.hpp
+0
-2
libcaf_core/src/forwarding_actor_proxy.cpp
libcaf_core/src/forwarding_actor_proxy.cpp
+0
-1
libcaf_core/src/proxy_registry.cpp
libcaf_core/src/proxy_registry.cpp
+1
-1
libcaf_io/caf/io/basp_broker.hpp
libcaf_io/caf/io/basp_broker.hpp
+0
-3
libcaf_io/src/basp_broker.cpp
libcaf_io/src/basp_broker.cpp
+0
-4
No files found.
libcaf_core/caf/proxy_registry.hpp
View file @
e4fb896c
...
@@ -42,8 +42,6 @@ public:
...
@@ -42,8 +42,6 @@ public:
/// Creates a new proxy instance.
/// Creates a new proxy instance.
virtual
strong_actor_ptr
make_proxy
(
node_id
,
actor_id
)
=
0
;
virtual
strong_actor_ptr
make_proxy
(
node_id
,
actor_id
)
=
0
;
virtual
execution_unit
*
registry_context
()
=
0
;
};
};
proxy_registry
(
actor_system
&
sys
,
backend
&
be
);
proxy_registry
(
actor_system
&
sys
,
backend
&
be
);
...
...
libcaf_core/src/forwarding_actor_proxy.cpp
View file @
e4fb896c
...
@@ -82,7 +82,6 @@ bool forwarding_actor_proxy::remove_backlink(abstract_actor* x) {
...
@@ -82,7 +82,6 @@ bool forwarding_actor_proxy::remove_backlink(abstract_actor* x) {
}
}
void
forwarding_actor_proxy
::
kill_proxy
(
execution_unit
*
ctx
,
error
rsn
)
{
void
forwarding_actor_proxy
::
kill_proxy
(
execution_unit
*
ctx
,
error
rsn
)
{
CAF_ASSERT
(
ctx
!=
nullptr
);
actor
tmp
;
actor
tmp
;
{
// lifetime scope of guard
{
// lifetime scope of guard
std
::
unique_lock
<
detail
::
shared_spinlock
>
guard
(
broker_mtx_
);
std
::
unique_lock
<
detail
::
shared_spinlock
>
guard
(
broker_mtx_
);
...
...
libcaf_core/src/proxy_registry.cpp
View file @
e4fb896c
...
@@ -115,7 +115,7 @@ void proxy_registry::kill_proxy(strong_actor_ptr& ptr, error rsn) {
...
@@ -115,7 +115,7 @@ void proxy_registry::kill_proxy(strong_actor_ptr& ptr, error rsn) {
if
(
!
ptr
)
if
(
!
ptr
)
return
;
return
;
auto
pptr
=
static_cast
<
actor_proxy
*>
(
actor_cast
<
abstract_actor
*>
(
ptr
));
auto
pptr
=
static_cast
<
actor_proxy
*>
(
actor_cast
<
abstract_actor
*>
(
ptr
));
pptr
->
kill_proxy
(
backend_
.
registry_context
()
,
std
::
move
(
rsn
));
pptr
->
kill_proxy
(
nullptr
,
std
::
move
(
rsn
));
}
}
}
// namespace caf
}
// namespace caf
libcaf_io/caf/io/basp_broker.hpp
View file @
e4fb896c
...
@@ -48,9 +48,6 @@ struct basp_broker_state : proxy_registry::backend, basp::instance::callee {
...
@@ -48,9 +48,6 @@ struct basp_broker_state : proxy_registry::backend, basp::instance::callee {
// inherited from proxy_registry::backend
// inherited from proxy_registry::backend
strong_actor_ptr
make_proxy
(
node_id
nid
,
actor_id
aid
)
override
;
strong_actor_ptr
make_proxy
(
node_id
nid
,
actor_id
aid
)
override
;
// inherited from proxy_registry::backend
execution_unit
*
registry_context
()
override
;
// inherited from basp::instance::callee
// inherited from basp::instance::callee
void
finalize_handshake
(
const
node_id
&
nid
,
actor_id
aid
,
void
finalize_handshake
(
const
node_id
&
nid
,
actor_id
aid
,
std
::
set
<
std
::
string
>&
sigs
)
override
;
std
::
set
<
std
::
string
>&
sigs
)
override
;
...
...
libcaf_io/src/basp_broker.cpp
View file @
e4fb896c
...
@@ -92,10 +92,6 @@ strong_actor_ptr basp_broker_state::make_proxy(node_id nid, actor_id aid) {
...
@@ -92,10 +92,6 @@ strong_actor_ptr basp_broker_state::make_proxy(node_id nid, actor_id aid) {
return
res
;
return
res
;
}
}
execution_unit
*
basp_broker_state
::
registry_context
()
{
return
self
->
context
();
}
void
basp_broker_state
::
finalize_handshake
(
const
node_id
&
nid
,
actor_id
aid
,
void
basp_broker_state
::
finalize_handshake
(
const
node_id
&
nid
,
actor_id
aid
,
std
::
set
<
std
::
string
>&
sigs
)
{
std
::
set
<
std
::
string
>&
sigs
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
nid
)
<<
CAF_ARG
(
aid
)
<<
CAF_ARG
(
sigs
));
CAF_LOG_TRACE
(
CAF_ARG
(
nid
)
<<
CAF_ARG
(
aid
)
<<
CAF_ARG
(
sigs
));
...
...
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