Skip to content

Commit

Permalink
Support thread name for debug use (OpenAtomFoundation#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
whoiami committed Mar 20, 2020
1 parent f640850 commit 1426ff7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/pika_auxiliary_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class PikaAuxiliaryThread : public pink::Thread {
public:
PikaAuxiliaryThread() :
mu_(),
cv_(&mu_) {}
cv_(&mu_) {
set_thread_name("AuxiliaryThread");
}
virtual ~PikaAuxiliaryThread();
slash::Mutex mu_;
slash::CondVar cv_;
Expand Down

0 comments on commit 1426ff7

Please sign in to comment.