DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

cond_destroy(3synch)


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(3synch), condition(3synch), cond_broadcast(3synch), cond_init(3synch), cond_signal(3synch), cond_timedwait(3synch), cond_wait(3synch)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004