= Nom = pthread_spin_unlock - Déverrouille un verrou d'attente active (objet de synchronisation temps-réel). [[PageOutline]] = Synopsis = #include [[BR]] int pthread_spin_unlock(pthread_spinlock_t *lock); = Description = pthread_spin_unlock() devra déverrouiller et rendre disponible le verrou d'attente active référencé par lock et qui a été précédemment verrouillé par l'appel à l'un des deux fonctions : [wiki:pthread_spin_lock] et [wiki:pthread_spin_trylock]. Le résultat est indéfini si le verrou n'est pas détenu par le thread appelant. Le résultat est indéfini si cette fonction a été appelé avec un verrou non initialisé. = Valeur Renvoyée = En cas de succès, pthread_spin_unlock() renvoie la valeur 0. En cas d'erreur, un code d'erreur est renvoyé. = Erreurs = La fonction pthread_spin_unlock() renvoie l'un des codes d'erreur suivants en cas de problème: EINVAL:: La valeur de lock est nulle ou ne réfère pas à un verrou déjà initialisé.[[BR]] EPERM:: Le thread appelant ne détient pas le verrou. = Source = Copyright[[BR]] Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . = Traduction et adaptation MUTEKP = Ghassan Almaless , , 2007 = Voir Aussi = [wiki:pthread_spin_init], [wiki:pthread_spin_destroy], [wiki:pthread_spin_trylock], [wiki:pthread_spin_lock].