Update of /cvsroot/javaprofiler/library/src/prof
In directory usw-pr-cvs1:/tmp/cvs-serv20943/src/prof
Modified Files:
lock.cpp
Log Message:
solaris port of communication interface finished
shared memory communication fixed
Index: lock.cpp
===================================================================
RCS file: /cvsroot/javaprofiler/library/src/prof/lock.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** lock.cpp 2001/11/21 22:31:44 1.1
--- lock.cpp 2002/01/27 14:33:24 1.2
***************
*** 52,64 ****
Lock::~Lock() {
! #ifdef USE_RAW_MONITORS
! //Prof::prof().jvmpiInterface->RawMonitorDestroy( _rm);
! #else
! #ifdef WIN32
! //DeleteCriticalSection( &cs);
! #else
! //pthread_mutex_destroy( &cs);
! #endif
! #endif
}
--- 52,59 ----
Lock::~Lock() {
! /* don't try to destroy the lock, someone else
! * (another thread) can be still using it;
! * the lock will be destroyed automatically when
! * JVM process finished (or was killed) */
}
|