The big NULL replacement party part 5.
Right. ' = NULL' would get a lot of these.
This commit is contained in:
@@ -215,7 +215,7 @@ static const clockid_t CLOCK_MONOTONIC = 1;
|
||||
namespace
|
||||
{
|
||||
typedef int (* CONDATTR_SET_CLOCK)( pthread_condattr_t *attr, clockid_t clock_id );
|
||||
CONDATTR_SET_CLOCK g_CondattrSetclock = NULL;
|
||||
CONDATTR_SET_CLOCK g_CondattrSetclock = nullptr;
|
||||
bool bInitialized = false;
|
||||
|
||||
#if defined(UNIX)
|
||||
@@ -230,7 +230,7 @@ namespace
|
||||
return;
|
||||
bInitialized = true;
|
||||
|
||||
void *pLib = NULL;
|
||||
void *pLib = nullptr;
|
||||
|
||||
do {
|
||||
{
|
||||
@@ -260,10 +260,10 @@ namespace
|
||||
return;
|
||||
} while(0);
|
||||
|
||||
g_CondattrSetclock = NULL;
|
||||
g_CondattrSetclock = nullptr;
|
||||
if( pLib != nullptr )
|
||||
dlclose( pLib );
|
||||
pLib = NULL;
|
||||
pLib = nullptr;
|
||||
}
|
||||
#elif defined(MACOSX)
|
||||
void InitMonotonic() { bInitialized = true; }
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
|
||||
const int MAX_THREADS=128;
|
||||
|
||||
static MutexImpl_Win32 *g_pThreadIdMutex = NULL;
|
||||
static MutexImpl_Win32 *g_pThreadIdMutex = nullptr;
|
||||
static void InitThreadIdMutex()
|
||||
{
|
||||
if( g_pThreadIdMutex != nullptr )
|
||||
return;
|
||||
g_pThreadIdMutex = new MutexImpl_Win32(NULL);
|
||||
g_pThreadIdMutex = new MutexImpl_Win32(nullptr);
|
||||
}
|
||||
|
||||
static uint64_t g_ThreadIds[MAX_THREADS];
|
||||
@@ -55,7 +55,7 @@ int ThreadImpl_Win32::Wait()
|
||||
GetExitCodeThread( ThreadHandle, &ret );
|
||||
|
||||
CloseHandle( ThreadHandle );
|
||||
ThreadHandle = NULL;
|
||||
ThreadHandle = nullptr;
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -97,7 +97,7 @@ static DWORD WINAPI StartThread( LPVOID pData )
|
||||
{
|
||||
if( g_ThreadIds[i] == RageThread::GetCurrentThreadID() )
|
||||
{
|
||||
g_ThreadHandles[i] = NULL;
|
||||
g_ThreadHandles[i] = nullptr;
|
||||
g_ThreadIds[i] = 0;
|
||||
break;
|
||||
}
|
||||
@@ -140,7 +140,7 @@ ThreadImpl *MakeThisThread()
|
||||
// LOG->Warn( werr_ssprintf( GetLastError(), "DuplicateHandle(%p, %p) failed",
|
||||
// CurProc, GetCurrentThread() ) );
|
||||
|
||||
thread->ThreadHandle = NULL;
|
||||
thread->ThreadHandle = nullptr;
|
||||
}
|
||||
|
||||
thread->ThreadId = GetCurrentThreadId();
|
||||
|
||||
Reference in New Issue
Block a user