Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Restrict SetThreadName to GNU compilers only
Browse files Browse the repository at this point in the history
  • Loading branch information
craigminihan committed Sep 21, 2016
1 parent 5815123 commit 52fca6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/avancedb/set_thread_name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "set_thread_name.h"

#if __GNUG__
#if __GNUG__ && not defined(__clang__)
#include <pthread.h>

bool SetThreadName::Set(std::thread& thread, const char* name) {
Expand All @@ -31,11 +31,11 @@ bool SetThreadName::Set(const char* name) {
return status;
}
#else
bool SetThreadName::Set(std::thread& thread, const char* name) {
bool SetThreadName::Set(std::thread&, const char*) {
return false;
}

bool SetThreadName::Set(const char* name) {
bool SetThreadName::Set(const char*) {
return false;
}
#endif

0 comments on commit 52fca6a

Please sign in to comment.