Skip to content

Instantly share code, notes, and snippets.

@pebble8888
Created June 8, 2016 14:07
Show Gist options
  • Save pebble8888/193ff3a819b9b7917ae4ef389672f9fe to your computer and use it in GitHub Desktop.
Save pebble8888/193ff3a819b9b7917ae4ef389672f9fe to your computer and use it in GitHub Desktop.
#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();
}
};
@slinkinone
Copy link

#include

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