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)
HANDLE hnd = ::CreateThread(NULL, 0, reinterpret_cast<LPTHREAD_START_ROUTINE>((void*)startRoutine), thread, CREATE_SUSPENDED, 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;
}
@ -127,7 +127,7 @@ bool Thread::runAsThread(void* obj, void *(*startRoutine)(void *), thread_t* thr
::ResumeThread(hnd);
#else
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;
}
#endif // defined(_WIN32)

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

Loading…
Cancel
Save

Powered by TurnKey Linux.