This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofThread.h
Go to the documentation of this file.
276 };
void yield()
Tell the thread to give up its CPU time other threads.
Definition ofThread.cpp:128
std::string getThreadName() const
Get the unique thread name, in the form of "Thread id#".
Definition ofThread.cpp:28
std::mutex mutex
The internal mutex called through lock() & unlock().
Definition ofThread.h:325
bool isCurrentThread() const
Query whether the current thread is active.
Definition ofThread.cpp:133
void waitForThread(bool callStopThread=true, long milliseconds=INFINITE_JOIN_TIMEOUT)
Wait for the thread to exit (aka "joining" the thread).
Definition ofThread.cpp:95
std::thread::id getThreadId() const
Get the unique thread id.
Definition ofThread.cpp:23
bool isThreadRunning() const
Check the running status of the thread.
Definition ofThread.cpp:18
@ INFINITE_JOIN_TIMEOUT
A sentinal value for an infinite join timeout.
Definition ofThread.h:272
virtual void threadedFunction()
The thread's run function.
Definition ofThread.cpp:148
OF_DEPRECATED_MSG("Use tryLock instead of setting the type of lock on startThread", void startThread(bool mutexBlocks))
Start the thread with options.
std::thread thread
The Poco::Thread that runs the Poco::Runnable.
Definition ofThread.h:316
void sleep(long milliseconds)
Tell the thread to sleep for a certain amount of milliseconds.
Definition ofThread.cpp:123
std::thread & getNativeThread()
Get a reference to the underlying Poco thread.
Definition ofThread.cpp:138