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
774b8f16
Commit
774b8f16
authored
Dec 08, 2014
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix namespace
parent
b501c326
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
examples/aout.cpp
examples/aout.cpp
+1
-1
examples/curl/curl_fuse.cpp
examples/curl/curl_fuse.cpp
+2
-2
libcaf_core/src/singletons.cpp
libcaf_core/src/singletons.cpp
+1
-1
No files found.
examples/aout.cpp
View file @
774b8f16
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
\******************************************************************************/
\******************************************************************************/
#include <random>
#include <random>
#include <chrono>
#include <cstdlib>
#include <cstdlib>
#include <iostream>
#include <iostream>
#include "caf/all.hpp"
#include "caf/all.hpp"
#include "caf/chrono.hpp"
using
namespace
caf
;
using
namespace
caf
;
using
std
::
endl
;
using
std
::
endl
;
...
...
examples/curl/curl_fuse.cpp
View file @
774b8f16
...
@@ -277,7 +277,7 @@ class curl_worker : public base_actor {
...
@@ -277,7 +277,7 @@ class curl_worker : public base_actor {
}
}
}
}
// avoid 100% cpu utilization if remote side is not accessible
// avoid 100% cpu utilization if remote side is not accessible
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
100
));
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
100
));
}
}
}
}
);
);
...
@@ -392,7 +392,7 @@ int main() {
...
@@ -392,7 +392,7 @@ int main() {
self
->
spawn
<
client
,
detached
>
(
master
);
self
->
spawn
<
client
,
detached
>
(
master
);
// poll CTRL+C flag every second
// poll CTRL+C flag every second
while
(
!
shutdown_flag
)
{
while
(
!
shutdown_flag
)
{
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
seconds
(
1
));
this_thread
::
sleep_for
(
std
::
chrono
::
seconds
(
1
));
}
}
aout
(
self
)
<<
color
::
cyan
<<
"received CTRL+C"
<<
color
::
reset_endl
;
aout
(
self
)
<<
color
::
cyan
<<
"received CTRL+C"
<<
color
::
reset_endl
;
// shutdown actors
// shutdown actors
...
...
libcaf_core/src/singletons.cpp
View file @
774b8f16
...
@@ -63,7 +63,7 @@ abstract_singleton::~abstract_singleton() {
...
@@ -63,7 +63,7 @@ abstract_singleton::~abstract_singleton() {
// nop
// nop
}
}
std
::
mutex
&
singletons
::
get_plugin_mutex
()
{
mutex
&
singletons
::
get_plugin_mutex
()
{
return
s_plugins_mtx
;
return
s_plugins_mtx
;
}
}
...
...
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