Back to index

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

Go to the source code of this file.


int pthread_spin_unlock (pthread_spinlock_t *lock)

Function Documentation

int pthread_spin_unlock ( pthread_spinlock_t *  lock)

Definition at line 22 of file pthread_spin_unlock.c.

  int tmp = 0;
  /* This should be a memory barrier to newer compilers */
  __asm__ __volatile__ ("stw,ma %1,0(%0)"
                        : : "r" (lock), "r" (tmp) : "memory");           
  return 0;

Here is the call graph for this function: