Back to index

glibc  2.9
Functions
pthread_spin_unlock.c File Reference
#include "pthreadP.h"
#include <lowlevellock.h>

Go to the source code of this file.

Functions

int pthread_spin_unlock (pthread_spinlock_t *lock)

Function Documentation

int pthread_spin_unlock ( pthread_spinlock_t *  lock)

Definition at line 24 of file pthread_spin_unlock.c.

{
  __asm __volatile (__lll_rel_instr ::: "memory");
  *lock = 0;
  return 0;
}