[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


tis_cond_broadcast

Wakes all threads that are waiting on a condition variable.

Syntax

tis_cond_broadcast(
                   cond );
 


Argument Data Type Access

cond opaque pthread_cond_t modify


C Binding

#include 

int tis_cond_broadcast ( pthread_cond_t *cond);

Arguments

cond
Address of the condition variable (passed by reference) on which to broadcast.

Description

When threads are not present, tis_cond_broadcast performs no actions.

When threads are present, tis_cond_broadcast unblocks all threads waiting on the specified condition variable cond. For further information about actions when threads are present, refer to the pthread_cond_broadcast description.

Return Values

If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:
Return        Description

0 Successful completion. [EINVAL] The value specified by cond is invalid.


Associated Routines

   tis_cond_destroy
   tis_cond_init
   tis_cond_signal
   tis_cond_wait



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]