From 6ccca020b6c6ff72e74a0caefd3ed7bf0e703d98 Mon Sep 17 00:00:00 2001 From: MattColegate Date: Thu, 31 Jan 2019 11:08:01 +0000 Subject: [PATCH] add #define to Linux Thread.cpp for pthread_getname --- src/ibmras/common/port/linux/Thread.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ibmras/common/port/linux/Thread.cpp b/src/ibmras/common/port/linux/Thread.cpp index 8a4af4e..3a26e14 100644 --- a/src/ibmras/common/port/linux/Thread.cpp +++ b/src/ibmras/common/port/linux/Thread.cpp @@ -17,7 +17,9 @@ /* * Functions that control thread behaviour */ - + #ifndef _GNU_SOURCE + #define _GNU_SOURCE + #endif #include "pthread.h" #include "time.h" #include @@ -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); @@ -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; } }