Searched refs:ptrlock (Results 1 - 5 of 5) sorted by relevance
/haiku-buildtools/gcc/libgomp/config/posix/ |
H A D | ptrlock.h | 34 static inline void gomp_ptrlock_init (gomp_ptrlock_t *ptrlock, void *ptr) argument 36 ptrlock->ptr = ptr; 37 gomp_mutex_init (&ptrlock->lock); 40 static inline void *gomp_ptrlock_get (gomp_ptrlock_t *ptrlock) argument 42 if (ptrlock->ptr != NULL) 43 return ptrlock->ptr; 45 gomp_mutex_lock (&ptrlock->lock); 46 if (ptrlock->ptr != NULL) 48 gomp_mutex_unlock (&ptrlock->lock); 49 return ptrlock 55 gomp_ptrlock_set(gomp_ptrlock_t *ptrlock, void *ptr) argument 61 gomp_ptrlock_destroy(gomp_ptrlock_t *ptrlock) argument [all...] |
/haiku-buildtools/gcc/libgomp/config/linux/ |
H A D | ptrlock.h | 30 A ptrlock has four states: 32 1 Owned by me, I get to write a pointer to ptrlock. 33 2 Some thread is waiting on the ptrlock. 35 It is not valid to gain the ptrlock and then write a NULL to it. */ 42 static inline void gomp_ptrlock_init (gomp_ptrlock_t *ptrlock, void *ptr) argument 44 *ptrlock = ptr; 47 extern void *gomp_ptrlock_get_slow (gomp_ptrlock_t *ptrlock); 48 static inline void *gomp_ptrlock_get (gomp_ptrlock_t *ptrlock) argument 52 uintptr_t v = (uintptr_t) __atomic_load_n (ptrlock, MEMMODEL_ACQUIRE); 57 if (__atomic_compare_exchange_n (ptrlock, 65 gomp_ptrlock_set(gomp_ptrlock_t *ptrlock, void *ptr) argument 72 gomp_ptrlock_destroy(gomp_ptrlock_t *ptrlock) argument [all...] |
H A D | ptrlock.c | 35 gomp_ptrlock_get_slow (gomp_ptrlock_t *ptrlock) argument 40 __atomic_compare_exchange_n (ptrlock, &oldval, 2, false, 47 __asm volatile ("" : "=r" (intptr) : "0" (ptrlock)); 49 if (sizeof (*ptrlock) > sizeof (int)) 50 intptr += (sizeof (*ptrlock) / sizeof (int)) - 1; 56 return (void *) __atomic_load_n (ptrlock, MEMMODEL_ACQUIRE); 60 gomp_ptrlock_set_slow (gomp_ptrlock_t *ptrlock) argument 64 __asm volatile ("" : "=r" (intptr) : "0" (ptrlock)); 66 if (sizeof (*ptrlock) > sizeof (int)) 67 intptr += (sizeof (*ptrlock) / sizeo [all...] |
/haiku-buildtools/gcc/libgomp/ |
H A D | Makefile.am | 63 task.c team.c work.c lock.c mutex.c proc.c sem.c bar.c ptrlock.c \
|
H A D | Makefile.in | 153 lock.lo mutex.lo proc.lo sem.lo bar.lo ptrlock.lo time.lo \ 398 bar.c ptrlock.c time.c fortran.c affinity.c target.c \ 587 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ptrlock.Plo@am__quote@
|
Completed in 85 milliseconds