diff options
author | davidxu <davidxu@FreeBSD.org> | 2007-11-21 05:21:58 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2007-11-21 05:21:58 +0000 |
commit | c63688968a333b863524a975289bc95c25685608 (patch) | |
tree | bd92b4c6d4241b908fcaf1640e5cc6e419dc109b /lib/libthr/thread/thr_suspend_np.c | |
parent | 648833c9531994ca86ff55eaabdde1c3f8b9e6d0 (diff) | |
download | FreeBSD-src-c63688968a333b863524a975289bc95c25685608.zip FreeBSD-src-c63688968a333b863524a975289bc95c25685608.tar.gz |
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.
Diffstat (limited to 'lib/libthr/thread/thr_suspend_np.c')
-rw-r--r-- | lib/libthr/thread/thr_suspend_np.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_suspend_np.c b/lib/libthr/thread/thr_suspend_np.c index d5fb3b0..3e48656 100644 --- a/lib/libthr/thread/thr_suspend_np.c +++ b/lib/libthr/thread/thr_suspend_np.c @@ -121,7 +121,7 @@ static int suspend_common(struct pthread *curthread, struct pthread *thread, int waitok) { - umtx_t tmp; + long tmp; while (thread->state != PS_DEAD && !(thread->flags & THR_FLAGS_SUSPENDED)) { |