File: pthread.h

package info (click to toggle)
glibc 2.42-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 311,512 kB
  • sloc: ansic: 1,060,589; asm: 238,093; makefile: 20,928; python: 13,508; sh: 11,823; cpp: 5,188; awk: 1,794; perl: 317; yacc: 292; pascal: 182; sed: 19
file content (43 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef	_PTHREAD_H
#include_next <pthread.h>
#ifndef _ISOMAC

# define ARCH_MIN_GUARD_SIZE 0

# if defined __USE_EXTERN_INLINES && defined _LIBC
#  if !IS_IN (libsupport)
#   include <bits/spin-lock-inline.h>

__extern_inline int
pthread_spin_destroy (pthread_spinlock_t *__lock)
{
  return __pthread_spin_destroy (__lock);
}

__extern_inline int
pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
{
  return __pthread_spin_init (__lock, __pshared);
}

__extern_inline int
pthread_spin_lock (pthread_spinlock_t *__lock)
{
  return __pthread_spin_lock (__lock);
}

__extern_inline int
pthread_spin_trylock (pthread_spinlock_t *__lock)
{
  return __pthread_spin_trylock (__lock);
}

__extern_inline int
pthread_spin_unlock (pthread_spinlock_t *__lock)
{
  return __pthread_spin_unlock (__lock);
}
#  endif
# endif
#endif
#endif