15 #ifndef SHAKA_EMBEDDED_DEBUG_THREAD_H_ 16 #define SHAKA_EMBEDDED_DEBUG_THREAD_H_ 26 Thread(
const std::string&
name, std::function<
void()> callback);
38 return thread_.joinable();
43 return thread_.get_id();
46 #ifdef DEBUG_DEADLOCKS 51 std::thread::id get_original_id()
const {
61 const std::string name_;
63 #ifdef DEBUG_DEADLOCKS 64 std::thread::id original_id_;
70 #endif // SHAKA_EMBEDDED_DEBUG_THREAD_H_
Thread(const std::string &name, std::function< void()> callback)
std::thread::id get_id() const