diff options
author | davidxu <davidxu@FreeBSD.org> | 2008-04-02 07:41:25 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2008-04-02 07:41:25 +0000 |
commit | 570834290dca75d4044e973157f19c9f8dcc70d6 (patch) | |
tree | 5dfc9d3bd1ed45091e36de296dea8afc61c26857 /lib/libthr/arch/i386/include/pthread_md.h | |
parent | aefa44f0cc0aed8dbab7c9b8e6b44ed0aabd592a (diff) | |
download | FreeBSD-src-570834290dca75d4044e973157f19c9f8dcc70d6.zip FreeBSD-src-570834290dca75d4044e973157f19c9f8dcc70d6.tar.gz |
Replace function _umtx_op with _umtx_op_err, the later function directly
returns errno, because errno can be mucked by user's signal handler and
most of pthread api heavily depends on errno to be correct, this change
should improve stability of the thread library.
Diffstat (limited to 'lib/libthr/arch/i386/include/pthread_md.h')
-rw-r--r-- | lib/libthr/arch/i386/include/pthread_md.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libthr/arch/i386/include/pthread_md.h b/lib/libthr/arch/i386/include/pthread_md.h index 1f629e1..5c00cf6 100644 --- a/lib/libthr/arch/i386/include/pthread_md.h +++ b/lib/libthr/arch/i386/include/pthread_md.h @@ -102,4 +102,7 @@ _get_curthread(void) { return (TCB_GET32(tcb_thread)); } + +#define HAS__UMTX_OP_ERR 1 + #endif |