DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

_spin_unlock(SYNCH)


_spin_unlock -- unlock a spin lock

Synopsis

   cc [options] -Kthread file
   

void _spin_unlock(spin_t *lock);

Description

_spin_unlock unlocks the spin lock pointed to by lock.

If one or more threads are waiting for the lock when _spin_unlock is called, one of the waiting threads will acquire the lock.

Parameters


lock
pointer to lock to be unlocked

Usage

Spin locks acquired with _spin_lock(SYNCH) and _spin_trylock(SYNCH) should be released with _spin_unlock(SYNCH).

Return values

_spin_unlock does not return a value.

Errors

None

References

Intro(SYNCH), _spin(SYNCH), _spin_destroy(SYNCH), _spin_init(SYNCH), _spin_lock(SYNCH), _spin_trylock(SYNCH)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005