correct some minor errors;

4.30h_maint
Bryan Biedenkapp 10 months ago
parent ac0cc2cf90
commit c10087e6cd

@ -119,7 +119,7 @@ bool Thread::runAsThread(void* obj, void *(*startRoutine)(void *), thread_t* thr
#if defined(_WIN32) #if defined(_WIN32)
HANDLE hnd = ::CreateThread(NULL, 0, reinterpret_cast<LPTHREAD_START_ROUTINE>((void*)startRoutine), thread, CREATE_SUSPENDED, NULL); HANDLE hnd = ::CreateThread(NULL, 0, reinterpret_cast<LPTHREAD_START_ROUTINE>((void*)startRoutine), thread, CREATE_SUSPENDED, NULL);
if (hnd == NULL) { if (hnd == NULL) {
LogError(LOG_NET, "Error returned from CreateThread, err: %lu", ::GetLastError()); LogError(LOG_HOST, "Error returned from CreateThread, err: %lu", ::GetLastError());
return false; return false;
} }
@ -127,7 +127,7 @@ bool Thread::runAsThread(void* obj, void *(*startRoutine)(void *), thread_t* thr
::ResumeThread(hnd); ::ResumeThread(hnd);
#else #else
if (::pthread_create(&thread->thread, NULL, startRoutine, thread) != 0) { if (::pthread_create(&thread->thread, NULL, startRoutine, thread) != 0) {
LogError(LOG_NET, "Error returned from pthread_create, err: %d", errno); LogError(LOG_HOST, "Error returned from pthread_create, err: %d", errno);
return false; return false;
} }
#endif // defined(_WIN32) #endif // defined(_WIN32)

@ -12,7 +12,7 @@
* @defgroup threading Threading * @defgroup threading Threading
* @brief Defines and implements threading routines. * @brief Defines and implements threading routines.
* @ingroup common * @ingroup common
*
* @file Thread.h * @file Thread.h
* @ingroup threading * @ingroup threading
* @file Thread.cpp * @file Thread.cpp

Loading…
Cancel
Save

Powered by TurnKey Linux.