diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 |
commit | f3fbd1c0586ff6ec7895991e6c28f61a503c36a8 (patch) | |
tree | 48d008fd3df8c0e73271a4b18474e0aac6dbfe33 /source/Host/macosx/ThisThread.cpp | |
parent | 2fc5d2d1dfaf623ce4e24cd8590565902f8c557c (diff) |
Notes
Diffstat (limited to 'source/Host/macosx/ThisThread.cpp')
-rw-r--r-- | source/Host/macosx/ThisThread.cpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/source/Host/macosx/ThisThread.cpp b/source/Host/macosx/ThisThread.cpp index 95c7f2bf1e38b..6f1c88f67309f 100644 --- a/source/Host/macosx/ThisThread.cpp +++ b/source/Host/macosx/ThisThread.cpp @@ -10,30 +10,20 @@ #include "lldb/Host/ThisThread.h" #include <pthread.h> +#include "llvm/ADT/SmallVector.h" using namespace lldb_private; void ThisThread::SetName(llvm::StringRef name) { -#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 - ::pthread_setname_np(name); +#if defined (__APPLE__) + ::pthread_setname_np(name.str().c_str()); #endif } void ThisThread::GetName(llvm::SmallVectorImpl<char> &name) { -#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 - char pthread_name[1024]; - dispatch_queue_t current_queue = ::dispatch_get_current_queue(); - if (current_queue != NULL) - { - const char *queue_name = dispatch_queue_get_label(current_queue); - if (queue_name && queue_name[0]) - { - name = queue_name; - } - } -#endif + // FIXME - implement this. } |