Changeset 5495
- Timestamp:
- 08/29/06 15:35:12
- Files:
-
- OpenThreads/trunk/include/OpenThreads/Thread (modified) (1 diff)
- OpenThreads/trunk/pthread_src/PThread.c++ (modified) (1 diff)
- OpenThreads/trunk/sproc_src/SprocThread.c++ (modified) (2 diffs)
- OpenThreads/trunk/win32_src/Win32Thread.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenThreads/trunk/include/OpenThreads/Thread
r5417 r5495 154 154 * @return thread process id. 155 155 */ 156 int getProcessId();156 size_t getProcessId(); 157 157 158 158 /** OpenThreads/trunk/pthread_src/PThread.c++
r5417 r5495 485 485 // Use: public 486 486 // 487 int Thread::getProcessId() {488 489 PThreadPrivateData *pd = static_cast<PThreadPrivateData *> (_prvData); 490 491 if(pd->idSet == false) return ( unsigned int) pthread_self();492 493 return ( int)(pd->tid);487 size_t Thread::getProcessId() { 488 489 PThreadPrivateData *pd = static_cast<PThreadPrivateData *> (_prvData); 490 491 if(pd->idSet == false) return (size_t)(pthread_self()); 492 493 return (size_t)(pd->tid); 494 494 } 495 495 OpenThreads/trunk/sproc_src/SprocThread.c++
r5417 r5495 443 443 // Use: public 444 444 // 445 int Thread::getProcessId() {445 size_t Thread::getProcessId() { 446 446 447 447 SprocThreadPrivateData *pd = … … 450 450 if(pd->idSet == false) return getpid(); 451 451 452 return pd->pid;452 return (size_t)(pd->pid); 453 453 454 454 } OpenThreads/trunk/win32_src/Win32Thread.cpp
r5422 r5495 293 293 // Use: public 294 294 // 295 int Thread::getProcessId() {296 297 return ( int) GetCurrentProcessId();295 size_t Thread::getProcessId() { 296 297 return (size_t) GetCurrentProcessId(); 298 298 299 299 }
