DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Threads

Invalidation of synchronization mechanisms

The syntax of the functions that invalidate synchronization structures is even more regular than that of the initializing functions.

The syntax is:

   int sema_destroy(         sema_t         *sema);
   int _spin_destroy(        spin_t         *lock);
   int barrier_destroy(      barrier_t      *barrier);
   int _barrier_spin_destroy(barrier_spin_t *barrier);
   int cond_destroy(         cond_t         *cond);
   int mutex_destroy(        mutex_t        *mutex);
   int rmutex_destroy(       rmutex_t       *rmutex);
   int rwlock_destroy(       rwlock_t       *rwlock);
Each function can fail as follows:

EINVAL
Invalid argument specified.

EBUSY
Mechanism currently in use.
The effect of these functions is:
Next topic: Compilation environment
Previous topic: Alternative initialization

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005