stacks and don't have to worry about __GLIBC_PREREQ not being
defined on all platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15567
Reader-writer lock not locked by calling thread: rwlock 0x.........
at 0x........: pthread_rwlock_unlock (drd_pthread_intercepts.c:?)
- by 0x........: safe_pthread_rwlock_unlock (safe-pthread.h:43)
+ by 0x........: safe_pthread_rwlock_unlock (safe-pthread.h:42)
by 0x........: main (tc12_rwl_trivial.c:29)
rwlock 0x........ was first observed at:
at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
* glibc normally does - error reporting is optional.
*/
static int safe_pthread_rwlock_unlock( pthread_rwlock_t *rwlock ) {
-#if __GLIBC_PREREQ(2,20) && ( defined(__i386__) || defined(__x86_64__) )
struct sigaction sa;
struct sigaction oldsa;
int r;
sigaction( SIGILL, &oldsa, NULL );
return r;
-#else
- return pthread_rwlock_unlock( rwlock );
-#endif
}
#define pthread_rwlock_unlock safe_pthread_rwlock_unlock