From 570834290dca75d4044e973157f19c9f8dcc70d6 Mon Sep 17 00:00:00 2001 From: davidxu Date: Wed, 2 Apr 2008 07:41:25 +0000 Subject: 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. --- lib/libthr/arch/i386/include/pthread_md.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libthr/arch/i386/include/pthread_md.h') 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 -- cgit v1.1