_barrier_spin_destroy(SYNCH)
_barrier_spin_destroy --
destroy a spin type barrier
Synopsis
   cc [options] -Kthread file
   
   #include <synch.h>
   
   int _barrier_spin_destroy(barrier_spin_t *barrier);
Description
_barrier_spin_destroy destroys the barrier pointed to by  barrier.
This includes invalidating the barrier
and freeing any associated implementation-allocated dynamic resources.
Any user-allocated dynamic storage is
unaffected by _barrier_spin_destroy
and must be explicitly released by the program.
Parameters
 barrier
- 
pointer to barrier to be destroyed
Return values
_barrier_spin_destroy returns zero for success
and an error number for failure.
Errors
If one of the following conditions is detected,
_barrier_spin_destroy returns the corresponding value:
 EBUSY
- 
a thread is still spinning at the barrier
 EINVAL
- 
invalid argument specified
References
Intro(SYNCH),
_barrier_spin(SYNCH),
_barrier_spin_init(SYNCH),
barrier(SYNCH),
barrier_destroy(SYNCH),
barrier_init(SYNCH),
barrier_wait(SYNCH)
© 2005 The SCO Group, Inc.  All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005