mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 1083101 - Static analysis fix on a CLOSED TREE. r=me
This commit is contained in:
parent
e16f3755af
commit
6d0161ea44
@ -118,7 +118,7 @@ class EventObject;
|
||||
class SetEventTask : public Task
|
||||
{
|
||||
public:
|
||||
SetEventTask(MultiThreadedTaskQueue* aQueue, SyncObject* aStart = nullptr, SyncObject* aCompletion = nullptr);
|
||||
explicit SetEventTask(MultiThreadedTaskQueue* aQueue, SyncObject* aStart = nullptr, SyncObject* aCompletion = nullptr);
|
||||
|
||||
~SetEventTask();
|
||||
|
||||
@ -206,7 +206,7 @@ private:
|
||||
|
||||
/// RAII helper.
|
||||
struct MutexAutoLock {
|
||||
MutexAutoLock(Mutex* aMutex) : mMutex(aMutex) { mMutex->Lock(); }
|
||||
explicit MutexAutoLock(Mutex* aMutex) : mMutex(aMutex) { mMutex->Lock(); }
|
||||
~MutexAutoLock() { mMutex->Unlock(); }
|
||||
protected:
|
||||
Mutex* mMutex;
|
||||
@ -222,7 +222,7 @@ public:
|
||||
|
||||
void Run();
|
||||
protected:
|
||||
WorkerThread(MultiThreadedTaskQueue* aTaskQueue);
|
||||
explicit WorkerThread(MultiThreadedTaskQueue* aTaskQueue);
|
||||
|
||||
MultiThreadedTaskQueue* mQueue;
|
||||
};
|
||||
|
@ -15,7 +15,7 @@ void* ThreadCallback(void* threadData);
|
||||
|
||||
class WorkerThreadPosix : public WorkerThread {
|
||||
public:
|
||||
WorkerThreadPosix(MultiThreadedTaskQueue* aTaskQueue)
|
||||
explicit WorkerThreadPosix(MultiThreadedTaskQueue* aTaskQueue)
|
||||
: WorkerThread(aTaskQueue)
|
||||
{
|
||||
pthread_create(&mThread, nullptr, ThreadCallback, static_cast<WorkerThread*>(this));
|
||||
|
@ -15,7 +15,7 @@ DWORD __stdcall ThreadCallback(void* threadData);
|
||||
|
||||
class WorkerThreadWin32 : public WorkerThread {
|
||||
public:
|
||||
WorkerThreadWin32(MultiThreadedTaskQueue* aTaskQueue)
|
||||
explicit WorkerThreadWin32(MultiThreadedTaskQueue* aTaskQueue)
|
||||
: WorkerThread(aTaskQueue)
|
||||
{
|
||||
mThread = ::CreateThread(nullptr, 0, ThreadCallback, static_cast<WorkerThread*>(this), 0, nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user