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

gf_dev_register_thread()

Register a device with a thread

Synopsis:

#include <gf/gf.h>

int gf_dev_register_thread( gf_dev_t gdev );

Arguments:

gdev
The handle for the graphics device to register. This is the handle acquired by gf_dev_attach().

Library:

gf

Description:

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.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

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