mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-08 18:57:46 +08:00
Added printThreadId option in ULogger
This commit is contained in:
@@ -321,7 +321,7 @@ class UTILITE_EXP UThreadC<void>
|
||||
}
|
||||
|
||||
int Create(
|
||||
int & ThreadId,
|
||||
unsigned long & ThreadId,
|
||||
Handle * const & H = 0,
|
||||
const bool & CreateDetached = false,
|
||||
const unsigned int & StackSize = 0,
|
||||
@@ -330,7 +330,9 @@ class UTILITE_EXP UThreadC<void>
|
||||
) const
|
||||
{
|
||||
*H = InvalidHandle;
|
||||
*H = CREATE_THREAD2(StackSize,ThreadMainHandler,this, (LPDWORD)&ThreadId);
|
||||
int id;
|
||||
*H = CREATE_THREAD2(StackSize,ThreadMainHandler,this, (LPDWORD)&id);
|
||||
ThreadId = (unsigned long)id;
|
||||
|
||||
if ( *H == CREATE_THREAD_FAILED )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user