Back to index

glibc  2.9
Defines | Functions
pthread_spin_unlock.c File Reference
#include "pthreadP.h"

Go to the source code of this file.

Defines

#define pthread_spin_init   pthread_spin_init_XXX

Functions

int pthread_spin_unlock (pthread_spinlock_t *lock)

Define Documentation

#define pthread_spin_init   pthread_spin_init_XXX

Definition at line 21 of file pthread_spin_unlock.c.


Function Documentation

int pthread_spin_unlock ( pthread_spinlock_t *  lock)

Definition at line 26 of file pthread_spin_unlock.c.

{
  __asm __volatile ("   xc  %O0(4,%R0),%0\n"
                  "   bcr 15,0"
                  : "=Q" (*lock) : "m" (*lock) : "cc" );
  return 0;
}