Back to index

glibc  2.9
Functions
lowlevellock.c File Reference
#include <errno.h>
#include <sysdep.h>
#include <lowlevellock.h>
#include <sys/time.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void __lll_lock_wait_private (int *futex)

Function Documentation

void __lll_lock_wait_private ( int futex)

Definition at line 28 of file lowlevellock.c.

{
  if (*futex == 2)
    lll_futex_wait (futex, 2, LLL_PRIVATE);

  while (atomic_exchange_acq (futex, 2) != 0)
    lll_futex_wait (futex, 2, LLL_PRIVATE);
}