Revision: 22639
http://opalvoip.svn.sourceforge.net/opalvoip/?rev=22639&view=rev
Author: rjongbloed
Date: 2009-05-18 08:24:30 +0000 (Mon, 18 May 2009)
Log Message:
-----------
Further changes for 64 bit Unix support, thanks Alexander V. Chernikov
Modified Paths:
--------------
ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
Modified: ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
===================================================================
--- ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2009-05-18 08:01:33 UTC (rev 22638)
+++ ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2009-05-18 08:24:30 UTC (rev 22639)
@@ -245,7 +245,7 @@
{
PWaitAndSignal m(activeThreadMutex);
- if (!activeThreads.Contains((unsigned)id))
+ if (!activeThreads.Contains((uintptr_t)id))
return PFalse;
return pthread_kill(id, sig) == 0;
@@ -254,8 +254,8 @@
void PProcess::PXSetThread(pthread_t id, PThread * thread)
{
activeThreadMutex.Wait();
- PThread * currentThread = activeThreads.GetAt((PINDEX)id);
- activeThreads.SetAt((PINDEX)id, thread);
+ PThread * currentThread = activeThreads.GetAt((uintptr_t)id);
+ activeThreads.SetAt((uintptr_t)id, thread);
activeThreadMutex.Signal();
if (currentThread != NULL)
@@ -388,7 +388,7 @@
if (id != 0) {
process.activeThreadMutex.Wait();
pthread_detach(id);
- process.activeThreads.SetAt((unsigned)id, NULL);
+ process.activeThreads.SetAt((uintptr_t)id, NULL);
process.activeThreadMutex.Signal();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|