summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/macosx/ThisThread.cpp
blob: 5244ba01412108d185174653539830155e0e4be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//===-- ThisThread.cpp ------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "lldb/Host/ThisThread.h"

#include "llvm/ADT/SmallVector.h"
#include <pthread.h>

using namespace lldb_private;

void ThisThread::SetName(llvm::StringRef name) {
#if defined(__APPLE__)
  ::pthread_setname_np(name.str().c_str());
#endif
}

void ThisThread::GetName(llvm::SmallVectorImpl<char> &name) {
  // FIXME - implement this.
}
OpenPOWER on IntegriCloud