From 6fdfcacb4a7a4a9f24e9c5c8c76a85d0ab5dc99a Mon Sep 17 00:00:00 2001 From: David Xu Date: Wed, 21 Nov 2007 05:21:58 +0000 Subject: Remove umtx_t definition, use type long directly, add wrapper function _thr_umtx_wait_uint() for umtx operation UMTX_OP_WAIT_UINT, use the function in semaphore operations, this fixed compiler warnings. --- lib/libthr/thread/thr_rtld.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/libthr/thread/thr_rtld.c') diff --git a/lib/libthr/thread/thr_rtld.c b/lib/libthr/thread/thr_rtld.c index 827b962d95ee2..14fb1272246af 100644 --- a/lib/libthr/thread/thr_rtld.c +++ b/lib/libthr/thread/thr_rtld.c @@ -52,8 +52,8 @@ struct rtld_lock { volatile int lock; volatile int rd_waiters; volatile int wr_waiters; - volatile umtx_t rd_cv; - volatile umtx_t wr_cv; + volatile long rd_cv; + volatile long wr_cv; void *base; }; @@ -93,7 +93,7 @@ _thr_rtld_rlock_acquire(void *lock) { struct pthread *curthread; struct rtld_lock *l; - umtx_t v; + long v; curthread = _get_curthread(); l = (struct rtld_lock *)lock; @@ -116,7 +116,7 @@ _thr_rtld_wlock_acquire(void *lock) { struct pthread *curthread; struct rtld_lock *l; - umtx_t v; + long v; curthread = _get_curthread(); l = (struct rtld_lock *)lock; @@ -185,7 +185,7 @@ _thr_rtld_init(void) { struct RtldLockInfo li; struct pthread *curthread; - umtx_t dummy; + long dummy; curthread = _get_curthread(); -- cgit v1.2.3