Skip to content

Commit

Permalink
add #define to Linux Thread.cpp for pthread_getname
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcolegate committed Jan 31, 2019
1 parent 2eaae28 commit 6ccca02
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ibmras/common/port/linux/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
/*
* Functions that control thread behaviour
*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include "pthread.h"
#include "time.h"
#include <semaphore.h>
Expand Down Expand Up @@ -109,7 +111,7 @@ void sleep(uint32 seconds) {
pthread_cond_timedwait(&c, &m, &t);
IBMRAS_DEBUG(finest,"Woke up");
pthread_mutex_unlock(&m);

pthread_mutex_lock(&condMapMux);
condMap.erase(it);
pthread_mutex_unlock(&condMapMux);
Expand Down Expand Up @@ -144,7 +146,7 @@ void stopAllThreads() {
{
// The attachment thread has been introduced by Oracle
// in their late attach classes
if(strncmp(theName, "Attachment", 10) == 0) {
if(strncmp(theName, "Attachment", 10) == 0) {
continue;
}
}
Expand Down

0 comments on commit 6ccca02

Please sign in to comment.