This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofThreadChannel.h
Go to the documentation of this file.
Safely send data between threads without additional synchronization.
Definition ofThreadChannel.h:29
bool tryReceive(T &sentValue)
If available, receive a new sent value without blocking.
Definition ofThreadChannel.h:113
bool tryReceive(T &sentValue, int64_t timeoutMs)
If available, receive a new sent value or wait for a user-specified duration.
Definition ofThreadChannel.h:159
bool receive(T &sentValue)
Block the receiving thread until a new sent value is available.
Definition ofThreadChannel.h:66
ofThreadChannel()
Create a default ofThreadChannel.
Definition ofThreadChannel.h:37
bool send(T &&value)
Send a value to the receiver without making a copy.
Definition ofThreadChannel.h:247
bool send(const T &value)
Send a value to the receiver by making a copy.
Definition ofThreadChannel.h:206