Rename variable in director_thread test

This avoids a clash with thread_terminate defined in an AIX include
file.

Fixes #1921
This commit is contained in:
Olly Betts 2022-01-26 15:23:46 +13:00
commit f104c4411f

View file

@ -42,15 +42,15 @@ extern "C" {
static pthread_t thread; static pthread_t thread;
#endif #endif
static int thread_terminate = 0; static int swig_thread_terminate = 0;
static SwigExamples::CriticalSection critical_section; static SwigExamples::CriticalSection critical_section;
int get_thread_terminate() { int get_thread_terminate() {
SwigExamples::Lock lock(critical_section); SwigExamples::Lock lock(critical_section);
return thread_terminate; return swig_thread_terminate;
} }
void set_thread_terminate(int value) { void set_thread_terminate(int value) {
SwigExamples::Lock lock(critical_section); SwigExamples::Lock lock(critical_section);
thread_terminate = value; swig_thread_terminate = value;
} }
} }
%} %}