Skip to content

Added static function for current OS thread ID.#2466

Merged
aleks-f merged 1 commit intopocoproject:developfrom
tomaz-beltram:GH2465
Sep 17, 2018
Merged

Added static function for current OS thread ID.#2466
aleks-f merged 1 commit intopocoproject:developfrom
tomaz-beltram:GH2465

Conversation

@tomaz-beltram
Copy link
Copy Markdown
Contributor

@tomaz-beltram tomaz-beltram commented Sep 13, 2018

With the support for C++11 the Thred::currentTid() now returns std::thread::native_handle_type that uniquely identifies a thread. Unfortunately this type is not very useful for tracing logs since its printed as a human unfriendly 14 digit number. This pull request ads a new static function that returns the OS specific thread ID for the calling thread even if the Thread class was not instantiated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants