16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_THREADING_WORKERTHREAD_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_THREADING_WORKERTHREAD_H_ 20 #include <condition_variable> 52 void run(std::function<
bool()> workFunc);
73 std::atomic<bool> m_stop;
76 std::atomic<bool> m_cancel;
82 std::function<bool()> m_workerFunc;
88 std::condition_variable m_workReady;
91 std::thread::id m_threadId;
99 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_THREADING_WORKERTHREAD_H_ void run(std::function< bool()> workFunc)
std::thread::id getThreadId() const
Definition: WorkerThread.h:34
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36