Workarounds and documentation of OSX posix incompatibilities

This commit is contained in:
Vojtech Bubnik committed 2020-10-22 14:57:50 +02:00
1 parent 723406dfea
commit d8f45ff1d8
3 files changed
+9 -2

No files matched your search

+4 -2
View File
@@ -116,8 +116,10 @@ void set_current_thread_name(const char *thread_name)
std::string get_current_thread_name()
{
char buf[16];
return std::string(thread_getname_np(buf, 16) == 0 ? buf : "");
// not supported
// char buf[16];
// return std::string(thread_getname_np(buf, 16) == 0 ? buf : "");
throw CriticalException("Not supported");
}
#else