Commit 774b8f16 authored by Joseph Noir's avatar Joseph Noir

Fix namespace

parent b501c326
...@@ -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;
......
...@@ -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
......
...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment