Working on switching to std::string.
This commit is contained in:
@@ -25,11 +25,11 @@ uint32_t current_thread_id() {
|
||||
}
|
||||
|
||||
void set_name(const std::string& name) {
|
||||
#if XE_LIKE_OSX
|
||||
pthread_setname_np(name.c_str());
|
||||
#else
|
||||
pthread_setname_np(pthread_self(), name.c_str());
|
||||
#endif // XE_LIKE_OSX
|
||||
}
|
||||
|
||||
void set_name(std::thread::native_handle_type handle, const std::string& name) {
|
||||
// ?
|
||||
}
|
||||
|
||||
void Yield() { pthread_yield_np(); }
|
||||
|
||||
Reference in New Issue
Block a user