DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

cond_destroy(SYNCH)


cond_destroy -- destroy a condition variable

Synopsis

   cc [options] -Kthread file
   

#include <synch.h>

int cond_destroy(cond_t *cond);

Description

cond_destroy destroys the condition variable cond. This includes invalidating cond and freeing any associated implementation-allocated dynamic resources.

Parameters


cond
pointer to the condition variable to destroy

Return values

cond_destroy returns zero for success and an error number for failure.

Errors

If any of the following conditions is detected, cond_destroy returns the corresponding value:

EBUSY
cond still has other threads waiting on it

EINVAL
invalid argument specified

References

Intro(SYNCH), condition(SYNCH), cond_broadcast(SYNCH), cond_init(SYNCH), cond_signal(SYNCH), cond_timedwait(SYNCH), cond_wait(SYNCH)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005