Summary: Merge branch 'dev' into rename_assert Fix new files. Remove cassert. Reviewers: buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D66
13 lines
328 B
C++
13 lines
328 B
C++
#include "thread.hpp"
|
|
#include "utils/assert.hpp"
|
|
|
|
Thread::Thread(Thread &&other) {
|
|
debug_assert(thread_id == UNINITIALIZED, "Thread was initialized before.");
|
|
thread_id = other.thread_id;
|
|
thread = std::move(other.thread);
|
|
}
|
|
|
|
void Thread::join() { return thread.join(); }
|
|
|
|
std::atomic<unsigned> Thread::thread_counter{1};
|