CONDBROADCAST


Restarts all threads Condwaiting for the handle

Syntax:
declare sub Condbroadcast ( byval handle as any ptr )

Usage:
Condbroadcast ( handle )

Parameters:
handle
The handle of a conditional variable, or the null pointer (0) on failure.

Description:
Once the conditional is Condcreate and the threads are started, one of more of them (including the main thread executing main program) can be set to Condwait for the conditional, they will be stopped until some other thread Condsignals that the waiting thread can restart. Condbroadcast can be used to restart all threads waiting for the conditional. At the end of the program Conddestroy must be used to avoid leaking resources in the OS.

Condbroadcast must be used instead of Condsignal to restart all threads waiting on the conditional.

Examples:
Platform Differences:
Dialect Differences:
Differences from QB:
See also:
Back to Threading Support Functions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode