cond_destroy(3synch) cond_destroy(3synch)
NAME
cond_destroy - destroy a condition variable
SYNOPSIS
cc [options] -Kthread file
#include <synch.h>
int cond_destroy(cond_t *cond);
Parameters
cond pointer to the condition variable to destroy
DESCRIPTION
cond_destroy destroys the condition variable cond. This
includes invalidating cond and freeing any associated
implementation-allocated dynamic resources.
Return Values
cond_destroy returns zero for success and an error number for
failure, as described below.
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
condition(3synch), cond_broadcast(3synch), cond_init(3synch),
cond_signal(3synch), cond_timedwait(3synch),
cond_wait(3synch), synch(3synch)
Copyright 1994 Novell, Inc. Page 1