Bug 156633 replace PR_CurrentThread with PR_GetCurrentThread

patch by riceman+bmo@mail.rit.edu r=morse,dougt,dveditz,timeless sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@128704 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mac.com
2002-09-03 14:51:05 +00:00
parent d79e1399fd
commit 800cde8566
16 changed files with 45 additions and 45 deletions

View File

@@ -275,14 +275,14 @@ nsThread::Init(nsIRunnable* runnable,
NS_IMETHODIMP
nsThread::GetCurrentThread(nsIThread * *aCurrentThread)
{
return GetIThread(PR_CurrentThread(), aCurrentThread);
return GetIThread(PR_GetCurrentThread(), aCurrentThread);
}
/* void sleep (in PRUint32 msec); */
NS_IMETHODIMP
nsThread::Sleep(PRUint32 msec)
{
if (PR_CurrentThread() != mThread)
if (PR_GetCurrentThread() != mThread)
return NS_ERROR_FAILURE;
if (PR_Sleep(PR_MillisecondsToInterval(msec)) != PR_SUCCESS)
@@ -361,7 +361,7 @@ nsThread::WaitUntilReadyToStartMain()
NS_COM nsresult
nsIThread::GetCurrent(nsIThread* *result)
{
return GetIThread(PR_CurrentThread(), result);
return GetIThread(PR_GetCurrentThread(), result);
}
NS_COM nsresult
@@ -424,7 +424,7 @@ nsIThread::IsMainThread()
PRThread *theMainThread;
gMainThread->GetPRThread(&theMainThread);
return theMainThread == PR_CurrentThread();
return theMainThread == PR_GetCurrentThread();
}
void