ports/devel/ptlib/files/patch-src__ptlib__common__osutils.cxx
Gabor Kovesdan 38642b095a PWLib is a multi-platform code library that can be used to write
applications that will compile and run on the BSD Unixes, Windows, Linux
and a few other Unix variants. It was developed by Equivalence Ltd Pty.

It is used by the OpenH323 library.

WWW: http://www.openh323.org/

PR:		ports/131129
Submitted by:	"Eric L. Chen" <d9364104@mail.nchu.edu.tw>
2009-02-21 19:01:07 +00:00

27 lines
931 B
C++

--- ./src/ptlib/common/osutils.cxx.orig 2009-02-14 22:04:50.000000000 +0100
+++ ./src/ptlib/common/osutils.cxx 2009-02-14 22:04:55.000000000 +0100
@@ -2152,21 +2152,21 @@
PReadWriteMutex::Nest * PReadWriteMutex::GetNest() const
{
PWaitAndSignal mutex(nestingMutex);
- return nestedThreads.GetAt(POrdinalKey((PINDEX)PThread::GetCurrentThreadId()));
+ return nestedThreads.GetAt(POrdinalKey((unsigned long)PThread::GetCurrentThreadId()));
}
void PReadWriteMutex::EndNest()
{
nestingMutex.Wait();
- nestedThreads.RemoveAt(POrdinalKey((PINDEX)PThread::GetCurrentThreadId()));
+ nestedThreads.RemoveAt(POrdinalKey((unsigned long)PThread::GetCurrentThreadId()));
nestingMutex.Signal();
}
PReadWriteMutex::Nest & PReadWriteMutex::StartNest()
{
- POrdinalKey threadId = (PINDEX)PThread::GetCurrentThreadId();
+ POrdinalKey threadId = (unsigned long)PThread::GetCurrentThreadId();
nestingMutex.Wait();