Register a device with a thread
#include <gf/gf.h> int gf_dev_register_thread( gf_dev_t gdev );
gf
This function should be called by threads that wish to register and use an already initialized graphics device. In a multi-threaded application, one thread can call gf_dev_attach() to attach to the graphics device, and other threads can call gf_dev_register_thread() to use the same device.
QNX Graphics Framework
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
“Multithreaded applications” in the Basic Drawing chapter.