X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fmm%2Fboehm-gc%2Flibatomic_ops-1.2%2Fsrc%2Fatomic_ops%2Fsysdeps%2Fgeneric_pthread.h;h=b38367fe42224fbb4afaeeb02715a46ec9864f71;hb=c83bff94e40ee0a218a39931af17814d1a42cb5c;hp=8d17c0a1f0730463750ee228c0b6763decd6320e;hpb=8275714acb4ee70328526bd43e7cb54869119f51;p=cacao.git diff --git a/src/mm/boehm-gc/libatomic_ops-1.2/src/atomic_ops/sysdeps/generic_pthread.h b/src/mm/boehm-gc/libatomic_ops-1.2/src/atomic_ops/sysdeps/generic_pthread.h index 8d17c0a1f..b38367fe4 100644 --- a/src/mm/boehm-gc/libatomic_ops-1.2/src/atomic_ops/sysdeps/generic_pthread.h +++ b/src/mm/boehm-gc/libatomic_ops-1.2/src/atomic_ops/sysdeps/generic_pthread.h @@ -38,7 +38,7 @@ extern pthread_mutex_t AO_pt_lock; AO_INLINE void -AO_nop_full() +AO_nop_full(void) { pthread_mutex_lock(&AO_pt_lock); pthread_mutex_unlock(&AO_pt_lock); @@ -47,7 +47,7 @@ AO_nop_full() #define AO_HAVE_nop_full AO_INLINE AO_t -AO_load_full(volatile AO_t *addr) +AO_load_full(const volatile AO_t *addr) { AO_t result; pthread_mutex_lock(&AO_pt_lock); @@ -69,7 +69,7 @@ AO_store_full(volatile AO_t *addr, AO_t val) #define AO_HAVE_store_full AO_INLINE unsigned char -AO_char_load_full(volatile unsigned char *addr) +AO_char_load_full(const volatile unsigned char *addr) { unsigned char result; pthread_mutex_lock(&AO_pt_lock); @@ -91,7 +91,7 @@ AO_char_store_full(volatile unsigned char *addr, unsigned char val) #define AO_HAVE_char_store_full AO_INLINE unsigned short -AO_short_load_full(volatile unsigned short *addr) +AO_short_load_full(const volatile unsigned short *addr) { unsigned short result; pthread_mutex_lock(&AO_pt_lock); @@ -113,7 +113,7 @@ AO_short_store_full(volatile unsigned short *addr, unsigned short val) #define AO_HAVE_short_store_full AO_INLINE unsigned int -AO_int_load_full(volatile unsigned int *addr) +AO_int_load_full(const volatile unsigned int *addr) { unsigned int result; pthread_mutex_lock(&AO_pt_lock);