Files
memgraph/src/threading/thread.cpp
Dominik Gleich 82414b9111 Fix naming of asserts.runtime_assert & assert -> debug_assert
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
2017-02-24 11:41:55 +01:00

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};