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
4b1b1ad5
Commit
4b1b1ad5
authored
Mar 12, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
5a43b082
66a3ec4f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
libcaf_core/caf/actor_companion.hpp
libcaf_core/caf/actor_companion.hpp
+2
-0
libcaf_core/caf/mixin/actor_widget.hpp
libcaf_core/caf/mixin/actor_widget.hpp
+3
-3
libcaf_core/src/actor_companion.cpp
libcaf_core/src/actor_companion.cpp
+4
-0
No files found.
libcaf_core/caf/actor_companion.hpp
View file @
4b1b1ad5
...
@@ -63,6 +63,8 @@ class actor_companion : public abstract_event_based_actor<behavior, true> {
...
@@ -63,6 +63,8 @@ class actor_companion : public abstract_event_based_actor<behavior, true> {
void
enqueue
(
const
actor_addr
&
sender
,
message_id
mid
,
void
enqueue
(
const
actor_addr
&
sender
,
message_id
mid
,
message
content
,
execution_unit
*
host
)
override
;
message
content
,
execution_unit
*
host
)
override
;
void
initialize
();
private:
private:
// set by parent to define custom enqueue action
// set by parent to define custom enqueue action
enqueue_handler
m_on_enqueue
;
enqueue_handler
m_on_enqueue
;
...
...
libcaf_core/caf/mixin/actor_widget.hpp
View file @
4b1b1ad5
...
@@ -71,9 +71,9 @@ class actor_widget : public Base {
...
@@ -71,9 +71,9 @@ class actor_widget : public Base {
if
(
event
->
type
()
==
static_cast
<
QEvent
::
Type
>
(
EventId
))
{
if
(
event
->
type
()
==
static_cast
<
QEvent
::
Type
>
(
EventId
))
{
auto
ptr
=
dynamic_cast
<
event_type
*>
(
event
);
auto
ptr
=
dynamic_cast
<
event_type
*>
(
event
);
if
(
ptr
)
{
if
(
ptr
)
{
m_
invoke
.
invoke_message
(
m_companion
.
get
(),
ptr
->
mptr
,
m_
companion
->
invoke_message
(
ptr
->
mptr
,
m_companion
->
bhvr_stack
().
back
(),
m_companion
->
get_behavior
(),
m_companion
->
bhvr_stack
().
back
_id
());
m_companion
->
awaited_response
_id
());
return
true
;
return
true
;
}
}
}
}
...
...
libcaf_core/src/actor_companion.cpp
View file @
4b1b1ad5
...
@@ -50,4 +50,8 @@ void actor_companion::enqueue(const actor_addr& sender, message_id mid,
...
@@ -50,4 +50,8 @@ void actor_companion::enqueue(const actor_addr& sender, message_id mid,
enqueue
(
std
::
move
(
ptr
),
eu
);
enqueue
(
std
::
move
(
ptr
),
eu
);
}
}
void
actor_companion
::
initialize
()
{
// nop
}
}
// 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