DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

_spin_unlock(3synch)


_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(3synch) and _spin_trylock(3synch) should be released with _spin_unlock(3synch).

Return values

_spin_unlock does not return a value.

Errors

None

References

Intro(3synch), _spin(3synch), _spin_destroy(3synch), _spin_init(3synch), _spin_lock(3synch), _spin_trylock(3synch)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004