Workarounds and documentation of OSX posix incompatibilities

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

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