Fixed bug in gthr-posix.h - buggy backend thread functions for objective-c
authorNicola Pero <nicola@gcc.gnu.org>
Wed, 18 Jul 2001 11:22:37 +0000 (11:22 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Wed, 18 Jul 2001 11:22:37 +0000 (11:22 +0000)
From-SVN: r44105

gcc/ChangeLog

index 5b1afaabe05c209f191f2e3e4bd4d12af14d5d6e..c7459051607de09874d4c958747c99a2d232b273 100644 (file)
@@ -1,3 +1,13 @@
+Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
+
+       * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
+       on error.  We can't blindly return the result of
+       pthread_mutex_trylock because it returns a positive number on
+       error, while we must return -1 on error.
+       (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
+       fixes.  
+       Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
+
 2001-07-18  Andreas Jaeger  <aj@suse.de>
 
        * integrate.c (output_inline_function): Correct type of debug_hooks.