mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 21:30:31 -04:00
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>
27 lines
931 B
C++
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();
|
|
|