summaryrefslogtreecommitdiff
path: root/sysdeps/sparc/nptl/sparc-nptl.h
blob: baff918288e84d3f494aa7d7bd734cb81bb0d4d3 (plain)
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
#ifndef _SPARC_NPTL_H

union sparc_pthread_barrier
{
  struct pthread_barrier b;
  struct sparc_pthread_barrier_s
    {
      unsigned int curr_event;
      int lock;
      unsigned int left;
      unsigned int init_count;
      unsigned char left_lock;
      unsigned char pshared;
    } s;
};

struct sparc_new_sem
{
  unsigned int value;
  unsigned char lock;
  unsigned char private;
  unsigned char pad[2];
  unsigned long int nwaiters;
};

struct sparc_old_sem
{
  unsigned int value;
  unsigned char lock;
  unsigned char private;
};

#endif