diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-01 09:25:33 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-01 09:25:33 +0000 |
commit | fd56af193eff8ad598d2789e970150d7a363c890 (patch) | |
tree | c5ec50abc7960fcaf509b4b1b3a27e4a9302f345 /libpthread/linuxthreads/semaphore.c | |
parent | f45706ca6ade259d2cf9397c35b0135991470197 (diff) |
change asm/volatile to __x__
Diffstat (limited to 'libpthread/linuxthreads/semaphore.c')
-rw-r--r-- | libpthread/linuxthreads/semaphore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/semaphore.c b/libpthread/linuxthreads/semaphore.c index 2b13c1450..392c37bfa 100644 --- a/libpthread/linuxthreads/semaphore.c +++ b/libpthread/linuxthreads/semaphore.c @@ -44,7 +44,7 @@ int sem_init(sem_t *sem, int pshared, unsigned int value) static int new_sem_extricate_func(void *obj, pthread_descr th) { - volatile pthread_descr self = thread_self(); + __volatile__ pthread_descr self = thread_self(); sem_t *sem = obj; int did_remove = 0; @@ -57,7 +57,7 @@ static int new_sem_extricate_func(void *obj, pthread_descr th) int sem_wait(sem_t * sem) { - volatile pthread_descr self = thread_self(); + __volatile__ pthread_descr self = thread_self(); pthread_extricate_if extr; int already_canceled = 0; int spurious_wakeup_count; |