* src/threads/native/lock.c (lock_wait_for_object): Renamed t to
authortwisti <none@none>
Tue, 26 Dec 2006 19:30:23 +0000 (19:30 +0000)
committertwisti <none@none>
Tue, 26 Dec 2006 19:30:23 +0000 (19:30 +0000)
thread.
(lock_notify_object): Likewise.
(lock_notify_all_object): Likewise.

src/threads/native/lock.c

index 6eb9831b3ffb2a7ef74d0c43e8226ce0f0ca6da2..ed7d795f85a7e2f720140eb5c6f80e743c4eecf4 100644 (file)
@@ -1363,8 +1363,11 @@ bool lock_is_held_by_current_thread(java_objectheader *o)
 
 void lock_wait_for_object(java_objectheader *o, s8 millis, s4 nanos)
 {
-       threadobject *t = (threadobject*) THREADOBJECT;
-       lock_monitor_wait(t, o, millis, nanos);
+       threadobject *thread;
+
+       thread = THREADOBJECT;
+
+       lock_monitor_wait(thread, o, millis, nanos);
 }
 
 
@@ -1379,8 +1382,11 @@ void lock_wait_for_object(java_objectheader *o, s8 millis, s4 nanos)
 
 void lock_notify_object(java_objectheader *o)
 {
-       threadobject *t = (threadobject*) THREADOBJECT;
-       lock_monitor_notify(t, o, true);
+       threadobject *thread;
+
+       thread = THREADOBJECT;
+
+       lock_monitor_notify(thread, o, true);
 }
 
 
@@ -1395,10 +1401,14 @@ void lock_notify_object(java_objectheader *o)
 
 void lock_notify_all_object(java_objectheader *o)
 {
-       threadobject *t = (threadobject*) THREADOBJECT;
-       lock_monitor_notify(t, o, false);
+       threadobject *thread;
+
+       thread = THREADOBJECT;
+
+       lock_monitor_notify(thread, o, false);
 }
 
+
 /*
  * These are local overrides for various environment variables in Emacs.
  * Please do not remove this and leave it at the end of the file, where