mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-22 12:04:38 +00:00
Bug 989509 - Part 3: security/ (r=cviecco,dkeeler)
This commit is contained in:
parent
82fe2098a8
commit
58623399e3
@ -142,7 +142,7 @@ nsresult nsKeygenThread::StartKeyGeneration(nsIObserver* aObserver)
|
||||
iAmRunning = true;
|
||||
|
||||
threadHandle = PR_CreateThread(PR_USER_THREAD, nsKeygenThreadRunner, static_cast<void*>(this),
|
||||
PR_PRIORITY_NORMAL, PR_LOCAL_THREAD, PR_JOINABLE_THREAD, 0);
|
||||
PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 0);
|
||||
|
||||
// bool thread_started_ok = (threadHandle != nullptr);
|
||||
// we might want to return "thread started ok" to caller in the future
|
||||
|
@ -27,7 +27,7 @@ nsresult nsPSMBackgroundThread::startThread(const nsCSubstring & name)
|
||||
mName = name;
|
||||
|
||||
mThreadHandle = PR_CreateThread(PR_USER_THREAD, nsThreadRunner, static_cast<void*>(this),
|
||||
PR_PRIORITY_NORMAL, PR_LOCAL_THREAD, PR_JOINABLE_THREAD, 0);
|
||||
PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 0);
|
||||
|
||||
NS_ASSERTION(mThreadHandle, "Could not create nsPSMBackgroundThread\n");
|
||||
|
||||
|
@ -64,7 +64,7 @@ NS_IMETHODIMP nsProtectedAuthThread::Login(nsIObserver *aObserver)
|
||||
mIAmRunning = true;
|
||||
|
||||
mThreadHandle = PR_CreateThread(PR_USER_THREAD, nsProtectedAuthThreadRunner, static_cast<void*>(this),
|
||||
PR_PRIORITY_NORMAL, PR_LOCAL_THREAD, PR_JOINABLE_THREAD, 0);
|
||||
PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 0);
|
||||
|
||||
// bool thread_started_ok = (threadHandle != nullptr);
|
||||
// we might want to return "thread started ok" to caller in the future
|
||||
|
@ -127,7 +127,7 @@ SmartCardMonitoringThread::Start()
|
||||
{
|
||||
if (!mThread) {
|
||||
mThread = PR_CreateThread(PR_SYSTEM_THREAD, LaunchExecute, this,
|
||||
PR_PRIORITY_NORMAL, PR_LOCAL_THREAD,
|
||||
PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD,
|
||||
PR_JOINABLE_THREAD, 0);
|
||||
}
|
||||
return mThread ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user