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:
parent
e21ea9b167
commit
f104c4411f
1 changed files with 3 additions and 3 deletions
|
|
@ -42,15 +42,15 @@ extern "C" {
|
|||
static pthread_t thread;
|
||||
#endif
|
||||
|
||||
static int thread_terminate = 0;
|
||||
static int swig_thread_terminate = 0;
|
||||
static SwigExamples::CriticalSection critical_section;
|
||||
int get_thread_terminate() {
|
||||
SwigExamples::Lock lock(critical_section);
|
||||
return thread_terminate;
|
||||
return swig_thread_terminate;
|
||||
}
|
||||
void set_thread_terminate(int value) {
|
||||
SwigExamples::Lock lock(critical_section);
|
||||
thread_terminate = value;
|
||||
swig_thread_terminate = value;
|
||||
}
|
||||
}
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue