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
228c4c59
Commit
228c4c59
authored
Apr 07, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove outdated example
parent
100e4853
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
27 deletions
+0
-27
examples/CMakeLists.txt
examples/CMakeLists.txt
+0
-1
examples/message_passing/prioritizing.cpp
examples/message_passing/prioritizing.cpp
+0
-26
No files found.
examples/CMakeLists.txt
View file @
228c4c59
...
...
@@ -28,7 +28,6 @@ add(message_passing promises)
add
(
message_passing calculator
)
add
(
message_passing delegating
)
add
(
message_passing fixed_stack
)
add
(
message_passing prioritizing
)
add
(
message_passing dancing_kirby
)
# dynamic behavior changes using 'become'
...
...
examples/message_passing/prioritizing.cpp
deleted
100644 → 0
View file @
100e4853
#include "caf/all.hpp"
using
std
::
endl
;
using
namespace
caf
;
behavior
foo
(
event_based_actor
*
self
)
{
self
->
send
(
self
,
"world"
);
self
->
send
<
message_priority
::
high
>
(
self
,
"hello"
);
// when spawning `foo` with priority_aware flag, it will print "hello" first
return
{
[
=
](
const
std
::
string
&
str
)
{
aout
(
self
)
<<
str
<<
endl
;
}
};
}
void
caf_main
(
actor_system
&
system
)
{
scoped_actor
self
{
system
};
aout
(
self
)
<<
"spawn foo"
<<
endl
;
self
->
spawn
(
foo
);
self
->
await_all_other_actors_done
();
aout
(
self
)
<<
"spawn foo again with priority_aware flag"
<<
endl
;
self
->
spawn
<
priority_aware
>
(
foo
);
}
CAF_MAIN
()
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