ofDoc > utils > ofThreadChannel

ofThreadChannelfile

ofThreadChannelclass

template<typename T>
class ofThreadChannel< T >

Communication channel between different threads allows for multithreaded programming without using mutexes or other synchronization structures. Instead of using some shared memory send a message through a channel whenever one thread needs to send some data to another. Usually a second channel can be used to send the processed data back to the first thread.

Functions

receive ()
send ()
close ()