posix-threads.cc (_Jv_CondNotify,_Jv_CondNotifyAll): Rename _Jv_PthreadCheckMonitor to _Jv_MutexCheckMonitor.
2003-10-21 Jerry Quinn <jlquinn@optonline.net> * posix-threads.cc (_Jv_CondNotify,_Jv_CondNotifyAll): Rename _Jv_PthreadCheckMonitor to _Jv_MutexCheckMonitor. * include/no-threads.h (_Jv_MutexCheckMonitor): New. * include/posix-threads.h (_Jv_MutexCheckMonitor): Rename from _Jv_PthreadCheckMonitor. Simplify code. (_Jv_MutexUnlock): Use _Jv_MutexCheckMonitor. * include/win32-threads.h (_Jv_MutexCheckMonitor): New. * java/lang/Object.h (_Jv_ObjectCheckMonitor): Declare. * java/lang/Thread.java (holdsLock): New. * java/lang/natObject.cc (_Jv_ObjectCheckMonitor): New, with and without JV_HASH_SYNCHRONIZATION. * java/lang/natThread.cc (java::lang::Thread::holdsLock): New. From-SVN: r72741
This commit is contained in:
parent
036a75ac29
commit
16a10fb6fc
9 changed files with 96 additions and 8 deletions
|
@ -107,6 +107,14 @@ java::lang::Thread::destroy (void)
|
|||
(JvNewStringLatin1 ("Thread.destroy unimplemented"));
|
||||
}
|
||||
|
||||
jboolean
|
||||
java::lang::Thread::holdsLock (jobject obj)
|
||||
{
|
||||
if (!obj)
|
||||
throw new NullPointerException;
|
||||
return !_Jv_ObjectCheckMonitor (obj);
|
||||
}
|
||||
|
||||
void
|
||||
java::lang::Thread::interrupt (void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue