libxmp/libxmpf in Omni Compiler  1.3.4
xmp_lock.h
Go to the documentation of this file.
1 #ifndef _XMP_LOCK_H
2 #define _XMP_LOCK_H
3 typedef struct xmp_lock{
4  _Bool islocked;
5  void *hsl; /* the data type is gasnet_hsl_t defined in gasnet.h */
6  int wait_size; /* How many elements in wait_list */
7  int wait_head; /* Index for next dequeue */
8  int wait_tail; /* Index for next enqueue */
9  int *wait_list; /* Circular queue of waiting threads */
12 #endif
Definition: xmp_lock.h:3
int * wait_list
Definition: xmp_lock.h:9
int wait_tail
Definition: xmp_lock.h:8
_Bool islocked
Definition: xmp_lock.h:4
int wait_size
Definition: xmp_lock.h:6
void * hsl
Definition: xmp_lock.h:5
int wait_head
Definition: xmp_lock.h:7
xmp_lock_t xmp_gasnet_lock_t
Definition: xmp_lock.h:11
struct xmp_lock xmp_lock_t