Update of /cvsroot/javaprofiler/library/src2
In directory usw-pr-cvs1:/tmp/cvs-serv26803/src2
Modified Files:
CommunShMem.cpp
Log Message:
fixes of shared memory communication for win32
Index: CommunShMem.cpp
===================================================================
RCS file: /cvsroot/javaprofiler/library/src2/CommunShMem.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** CommunShMem.cpp 2002/01/26 10:38:25 1.8
--- CommunShMem.cpp 2002/01/26 22:50:27 1.9
***************
*** 66,70 ****
#ifdef WIN32
! #error FIXME
#else
/// server process ID
--- 66,71 ----
#ifdef WIN32
! /// server process ID
! DWORD pid;
#else
/// server process ID
***************
*** 180,184 ****
#ifdef WIN32
! #error FIXME
#else
return !kill( pid, 0);
--- 181,185 ----
#ifdef WIN32
! return GetProcessVersion( pid);
#else
return !kill( pid, 0);
***************
*** 335,339 ****
#ifdef WIN32
! #error FIXME
#else
pid_t* p = (pid_t*)((jint*)(n->shmem.getAddress())+1);
--- 336,342 ----
#ifdef WIN32
! DWORD* p = (DWORD*)((jint*)(n->shmem.getAddress())+1);
!
! *p = GetCurrentProcessId();
#else
pid_t* p = (pid_t*)((jint*)(n->shmem.getAddress())+1);
***************
*** 345,353 ****
n->sem2.wait();
- #ifdef WIN32
- #error FIXME
- #else
n->pid = *p;
- #endif
return JNI_TRUE;
--- 348,352 ----
|