Commit c9cc03be authored by Joseph Noir's avatar Joseph Noir

Fix namespace to use new thread and mutex headers

parent 15921791
...@@ -112,7 +112,7 @@ inline bool operator>=(const time_point& lhs, const time_point& rhs) { ...@@ -112,7 +112,7 @@ inline bool operator>=(const time_point& lhs, const time_point& rhs) {
namespace caf { namespace caf {
using time_point = std::chrono::high_resolution_clock::time_point; using time_point = std::chrono::high_resolution_clock::time_point;
inline time_point<std::chrono::high_resolution_clock> now() { inline auto now() -> decltype(time_point()) {
return std::chrono::high_resolution_clock::now(); return std::chrono::high_resolution_clock::now();
} }
......
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
#include <sstream> #include <sstream>
#include <stdexcept> #include <stdexcept>
#include "caf/locks.hpp"
#include "caf/all.hpp" #include "caf/all.hpp"
#include "caf/group.hpp" #include "caf/group.hpp"
#include "caf/locks.hpp"
#include "caf/mutex.hpp" #include "caf/mutex.hpp"
#include "caf/message.hpp" #include "caf/message.hpp"
#include "caf/to_string.hpp" #include "caf/to_string.hpp"
...@@ -429,7 +429,7 @@ void group_manager::stop() { ...@@ -429,7 +429,7 @@ void group_manager::stop() {
CAF_LOG_TRACE(""); CAF_LOG_TRACE("");
modules_map mm; modules_map mm;
{ // critical section { // critical section
std::lock_guard<std::mutex> guard(m_mmap_mtx); lock_guard<mutex> guard(m_mmap_mtx);
mm.swap(m_mmap); mm.swap(m_mmap);
} }
for (auto& kvp : mm) { for (auto& kvp : mm) {
......
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