Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_register_thread.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_register_thread.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_register_thread.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_register_thread.html on line 8
Register a device with a thread
#include <gf/gf.h>
int gf_dev_register_thread( gf_dev_t gdev );
- gdev
- The handle for the graphics device to register. This is the handle acquired by gf_dev_attach().
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 |
gf_dev_attach()
“Multithreaded applications” in the
Basic Drawing chapter.
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_register_thread.html on line 99
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_dev_register_thread.html on line 99