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
e498cf2d
Commit
e498cf2d
authored
Sep 04, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation of caf-vec on MSVC
parent
d45dbf15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
tools/caf-vec.cpp
tools/caf-vec.cpp
+8
-11
No files found.
tools/caf-vec.cpp
View file @
e498cf2d
...
...
@@ -8,9 +8,6 @@
#include "caf/all.hpp"
using
std
::
cout
;
using
std
::
cerr
;
using
std
::
endl
;
using
std
::
string
;
using
namespace
caf
;
...
...
@@ -550,12 +547,12 @@ expected<first_pass_result> first_pass(blocking_actor* self, std::istream& in,
>>
consume
(
"start"
)
>>
skip_word
>>
consume
(
"level ="
)
>>
skip_word
>>
consume
(
"node = "
)
>>
res
.
this_node
>>
skip_to_next_line
))
{
cerr
<<
"*** malformed log file, expect the first line to contain "
<<
"an INFO entry of the logger"
<<
endl
;
std
::
cerr
<<
"*** malformed log file, expect the first line to contain "
<<
"an INFO entry of the logger"
<<
std
::
endl
;
return
sec
::
invalid_argument
;
}
if
(
vl
>=
verbosity_level
::
informative
)
aout
(
self
)
<<
"found node "
<<
res
.
this_node
<<
endl
;
aout
(
self
)
<<
"found node "
<<
res
.
this_node
<<
std
::
endl
;
logger_id
id
;
string
message
;
while
(
in
>>
skip_word
>>
skip_word
>>
skip_word
>>
id
...
...
@@ -571,7 +568,7 @@ expected<first_pass_result> first_pass(blocking_actor* self, std::istream& in,
}
if
(
vl
>=
verbosity_level
::
informative
)
aout
(
self
)
<<
"found "
<<
res
.
entities
.
size
()
<<
" entities for node "
<<
res
.
this_node
<<
endl
;
<<
res
.
this_node
<<
std
::
endl
;
return
res
;
}
...
...
@@ -621,7 +618,7 @@ void second_pass(blocking_actor* self, const group& grp,
auto
bcast
=
[
&
](
const
se_event
&
x
)
{
if
(
vl
>=
verbosity_level
::
noisy
)
aout
(
self
)
<<
"broadcast event from "
<<
nid
<<
": "
<<
deep_to_string
(
x
)
<<
endl
;
<<
": "
<<
deep_to_string
(
x
)
<<
std
::
endl
;
if
(
self
!=
nullptr
)
self
->
send
(
grp
,
x
);
};
...
...
@@ -632,7 +629,7 @@ void second_pass(blocking_actor* self, const group& grp,
// i.e., is a potential deadlock
if
(
vl
>=
verbosity_level
::
noisy
)
aout
(
self
)
<<
"wait for send from another node matching fields "
<<
deep_to_string
(
fields
)
<<
endl
;
<<
deep_to_string
(
fields
)
<<
std
::
endl
;
se_event
*
res
=
nullptr
;
self
->
receive_while
([
&
]
{
return
res
==
nullptr
;
})(
[
&
](
const
se_event
&
x
)
{
...
...
@@ -706,7 +703,7 @@ void second_pass(blocking_actor* self, const group& grp,
in_flight_spawns
.
erase
(
i
);
}
else
{
std
::
cerr
<<
"*** cannot match init event to a previous spawn"
<<
endl
;
<<
std
::
endl
;
}
break
;
}
...
...
@@ -767,7 +764,7 @@ struct config : public actor_system_config {
void
caf_main
(
actor_system
&
sys
,
const
config
&
cfg
)
{
using
namespace
std
;
if
(
cfg
.
output_file
.
empty
())
{
cerr
<<
"*** no output file specified"
<<
endl
;
cerr
<<
"*** no output file specified"
<<
std
::
endl
;
return
;
}
verbosity_level
vl
;
...
...
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