natThread.cc (finalize_native): Destroy join conditional variable and mutex if...
* java/lang/natThread.cc (finalize_native): Destroy join conditional variable and mutex if these destroy operations are supported. From-SVN: r87361
This commit is contained in:
parent
af8f35b88f
commit
bdbf6060ea
@ -1,3 +1,9 @@
|
|||||||
|
2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
|
||||||
|
|
||||||
|
* java/lang/natThread.cc (finalize_native): Destroy
|
||||||
|
join conditional variable and mutex if these destroy
|
||||||
|
operations are supported.
|
||||||
|
|
||||||
2004-09-10 Dalibor Topic <robilad@kaffe.org>
|
2004-09-10 Dalibor Topic <robilad@kaffe.org>
|
||||||
|
|
||||||
* gnu/java/net/protocol/file/Connection.java (permission): New field.
|
* gnu/java/net/protocol/file/Connection.java (permission): New field.
|
||||||
|
@ -78,6 +78,12 @@ finalize_native (jobject ptr)
|
|||||||
{
|
{
|
||||||
natThread *nt = (natThread *) ptr;
|
natThread *nt = (natThread *) ptr;
|
||||||
_Jv_ThreadDestroyData (nt->thread);
|
_Jv_ThreadDestroyData (nt->thread);
|
||||||
|
#ifdef _Jv_HaveCondDestroy
|
||||||
|
_Jv_CondDestroy (&nt->join_cond);
|
||||||
|
#endif
|
||||||
|
#ifdef _Jv_HaveMutexDestroy
|
||||||
|
_Jv_MutexDestroy (&nt->join_mutex);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
jint
|
jint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user