Removing xe_thread_t.

This commit is contained in:
Ben Vanik
2014-08-16 01:36:45 -07:00
parent bca49bed4b
commit 01f0b14250
12 changed files with 69 additions and 216 deletions

View File

@@ -24,6 +24,14 @@ uint32_t current_thread_id() {
return static_cast<uint32_t>(tid);
}
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 Yield() { pthread_yield_np(); }
void Sleep(std::chrono::microseconds duration) {