Created
June 8, 2016 14:07
-
-
Save pebble8888/193ff3a819b9b7917ae4ef389672f9fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
class ThreadUtility | |
{ | |
public: | |
static std::string thread_id_string(std::thread& th) { | |
std::stringstream ss; | |
ss << th.get_id(); | |
return ss.str(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#include