make things work better

git-svn-id: svn://10.0.0.236/branches/THREADS_20060213_BRANCH@190227 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%meer.net
2006-02-16 19:36:31 +00:00
parent 2789a9a654
commit 6d38faff99
41 changed files with 448 additions and 669 deletions

View File

@@ -42,7 +42,7 @@
#include "TimerThread.h"
#include "nsAutoLock.h"
#include "nsThreadManager.h"
#include "nsThreadUtils.h"
#include "pratom.h"
#include "nsIObserverService.h"
@@ -111,8 +111,7 @@ nsresult TimerThread::Init()
if (NS_SUCCEEDED(rv)) {
// We hold on to mThread to keep the thread alive.
rv = nsThreadManager::NewThread(NS_LITERAL_CSTRING("xpcom.timer"), this,
getter_AddRefs(mThread));
rv = NS_NewThread("xpcom.timer", this, getter_AddRefs(mThread));
if (NS_FAILED(rv)) {
mThread = nsnull;
}