Signed-off-by: Justin Dickow <jjdickow@gmail.com>
success = !pthread_create(&thread_handle_, &attributes, threadFunc,
delegate_);
if (success) {
success = !pthread_create(&thread_handle_, &attributes, threadFunc,
delegate_);
if (success) {
pthread_result = pthread_setname_np(thread_handle_, name_.c_str());
pthread_result = pthread_setname_np(thread_handle_, name_.c_str());
+#elif OS_MACOSX
+ pthread_result = pthread_setname_np(name_.c_str());
+#endif
# ifdef __QNXNTO__
if (pthread_result != EOK) {
LOG4CXX_INFO(logger_,"Couldn't set pthread name"
# ifdef __QNXNTO__
if (pthread_result != EOK) {
LOG4CXX_INFO(logger_,"Couldn't set pthread name"