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
6424ac22
Commit
6424ac22
authored
Dec 21, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc47 test
parent
196b8080
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
unit_testing/test__spawn.cpp
unit_testing/test__spawn.cpp
+18
-3
No files found.
unit_testing/test__spawn.cpp
View file @
6424ac22
...
...
@@ -28,11 +28,26 @@ using namespace cppa;
struct
event_testee
:
public
fsm_actor
<
event_testee
>
{
behavior
*
w4str
()
{
return
&
wait4string
;
}
behavior
*
w4float
()
{
return
&
wait4float
;
}
behavior
*
w4int
()
{
return
&
init_state
;
}
behavior
wait4string
=
(
on
<
std
::
string
>
()
>>
[
this
]()
{
become
(
&
init_state
);
become
(
w4int
()
);
},
on
<
atom
(
"GetState"
)
>
()
>>
[
=
]()
{
...
...
@@ -44,7 +59,7 @@ struct event_testee : public fsm_actor<event_testee>
(
on
<
float
>
()
>>
[
=
]()
{
become
(
&
wait4string
);
become
(
w4str
()
);
},
on
<
atom
(
"GetState"
)
>
()
>>
[
=
]()
{
...
...
@@ -56,7 +71,7 @@ struct event_testee : public fsm_actor<event_testee>
(
on
<
int
>
()
>>
[
=
]()
{
become
(
&
wait4float
);
become
(
w4float
()
);
},
on
<
atom
(
"GetState"
)
>
()
>>
[
=
]()
{
...
...
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