aboutsummaryrefslogtreecommitdiff
path: root/libobjc/thr.c
diff options
context:
space:
mode:
authorNicola Pero <nicola@gcc.gnu.org>2001-07-18 11:54:03 +0000
committerNicola Pero <nicola@gcc.gnu.org>2001-07-18 11:54:03 +0000
commitba0cf7f7f5b89fe41b7fa53534e58bf63c0563e5 (patch)
tree43d510abfae2728d727a938f66560296f651ee9d /libobjc/thr.c
parent8b52df456f7ac8f4c8a053b146722c59abd39519 (diff)
downloadgcc-ba0cf7f7f5b89fe41b7fa53534e58bf63c0563e5.zip
gcc-ba0cf7f7f5b89fe41b7fa53534e58bf63c0563e5.tar.gz
gcc-ba0cf7f7f5b89fe41b7fa53534e58bf63c0563e5.tar.bz2
Save a function call on mutex locking/unlocking
From-SVN: r44106
Diffstat (limited to 'libobjc/thr.c')
-rw-r--r--libobjc/thr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libobjc/thr.c b/libobjc/thr.c
index 437ee57..13a22a5 100644
--- a/libobjc/thr.c
+++ b/libobjc/thr.c
@@ -318,7 +318,7 @@ objc_mutex_lock(objc_mutex_t mutex)
return -1;
/* If we already own the lock then increment depth */
- thread_id = objc_thread_id();
+ thread_id = __objc_thread_id();
if (mutex->owner == thread_id)
return ++mutex->depth;
@@ -350,7 +350,7 @@ objc_mutex_trylock(objc_mutex_t mutex)
return -1;
/* If we already own the lock then increment depth */
- thread_id = objc_thread_id();
+ thread_id = __objc_thread_id();
if (mutex->owner == thread_id)
return ++mutex->depth;
@@ -385,7 +385,7 @@ objc_mutex_unlock(objc_mutex_t mutex)
return -1;
/* If another thread owns the lock then abort */
- thread_id = objc_thread_id();
+ thread_id = __objc_thread_id();
if (mutex->owner != thread_id)
return -1;
@@ -477,7 +477,7 @@ objc_condition_wait(objc_condition_t condition, objc_mutex_t mutex)
return -1;
/* Make sure we are owner of mutex */
- thread_id = objc_thread_id();
+ thread_id = __objc_thread_id();
if (mutex->owner != thread_id)
return -1;