History

streamline system startup logging

Ge Wang committed 3 years ago

Commit f8d387a1 parent 87efd116 files · +130 −69Browse files

Showing the changes to src/core/util_thread.cpp (1 of 6 files). Show all

Unified · Split

src/core/util_thread.cpp+5−5
@@ -81,11 +81,11 @@ XThread::~XThread( ) · 80 unmodified lines
8181 // TODO: find an alternative for Android?
8282 #if defined(__PLATFORM_MACOSX__) || ( defined(__PLATFORM_LINUX__) && !defined(__ANDROID__) ) || defined(__WINDOWS_PTHREAD__)
8383 // log
84− EM_log( CK_LOG_FINER, "cancelling XThread: %u on thread: %u", (t_CKUINT)thread, (t_CKUINT)pthread_self() );
84+ EM_log( CK_LOG_FINER, "cancelling XThread [0x%x] on thread: 0x%x", (t_CKUINT)thread, (t_CKUINT)pthread_self() );
8585 pthread_cancel(thread);
8686 pthread_join(thread, NULL);
8787 // log
88− EM_log( CK_LOG_FINER, "joined with XThread: %u on thread: %u", (t_CKUINT)thread, (t_CKUINT)pthread_self() );
88+ EM_log( CK_LOG_FINER, "joined with XThread [0x%x] on thread: 0x%x", (t_CKUINT)thread, (t_CKUINT)pthread_self() );
8989 #elif defined(__PLATFORM_WIN32__)
9090 TerminateThread((HANDLE)thread, 0);
9191 #endif
@@ -295,11 +295,11 @@ void XWriteThread::shutdown() · 203 unmodified lines
295295 SmartPushLog logPush;
296296
297297 // log
298− EM_log( CK_LOG_FINER, "waiting on write thread: %u", (t_CKUINT)m_thread.getThread() );
298+ EM_log( CK_LOG_FINER, "waiting on write thread: 0x%x", (t_CKUINT)m_thread.getThread() );
299299 // wait on the thread
300300 m_thread.wait( -1, false );
301301 // log
302− EM_log( CK_LOG_FINER, "done waiting for thread: %u", (t_CKUINT)m_thread.getThread() );
302+ EM_log( CK_LOG_FINER, "done waiting for thread: 0x%x", (t_CKUINT)m_thread.getThread() );
303303 }
304304
305305
@@ -492,7 +492,7 @@ t_CKBOOL XThreadUtil::set_priority( CHUCK_THREAD tid, t_CKINT priority ) · 186 unmodified lines
492492 int policy;
493493
494494 // log
495− EM_log( CK_LOG_INFO, "setting thread priority to: %ld...", priority );
495+ EM_log( CK_LOG_INFO, "setting thread [0x%x] priority to: %ld...", (t_CKUINT)tid, priority );
496496
497497 // get for thread
498498 if( pthread_getschedparam( tid, &policy, &param) )

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t