summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_private.h
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2007-11-21 05:21:58 +0000
committerdavidxu <davidxu@FreeBSD.org>2007-11-21 05:21:58 +0000
commitc63688968a333b863524a975289bc95c25685608 (patch)
treebd92b4c6d4241b908fcaf1640e5cc6e419dc109b /lib/libthr/thread/thr_private.h
parent648833c9531994ca86ff55eaabdde1c3f8b9e6d0 (diff)
downloadFreeBSD-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_private.h')
-rw-r--r--lib/libthr/thread/thr_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index 313074f..abde74f 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -312,7 +312,7 @@ struct pthread {
struct umutex lock;
/* Internal condition variable cycle number. */
- umtx_t cycle;
+ long cycle;
/* How many low level locks the thread held. */
int locklevel;
OpenPOWER on IntegriCloud