Skip to content

Commit f6837ce

Browse files
committed
Fix linking
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17981 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 6c80f56 commit f6837ce

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Compiler/runtime/corbaimpl.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -310,18 +310,18 @@ Please stop or kill the other OMC process first!\nOpenModelica OMC will now exit
310310

311311
using namespace std;
312312

313-
static pthread_mutex_t omc_corba_lock;
314-
static pthread_mutex_t omc_corba_clientlock;
313+
pthread_mutex_t omc_corba_lock;
314+
pthread_mutex_t omc_corba_clientlock;
315315

316316
// Condition variable for keeping omc waiting for client requests
317-
static pthread_cond_t omc_waitformsg;
318-
static pthread_mutex_t omc_waitlock;
319-
static bool omc_waiting=false;
317+
pthread_cond_t omc_waitformsg;
318+
pthread_mutex_t omc_waitlock;
319+
bool omc_waiting=false;
320320

321321
// Condition variable for keeping corba waiting for returnvalue from omc
322-
static pthread_cond_t corba_waitformsg;
323-
static pthread_mutex_t corba_waitlock;
324-
static bool corba_waiting=false;
322+
pthread_cond_t corba_waitformsg;
323+
pthread_mutex_t corba_waitlock;
324+
bool corba_waiting=false;
325325

326326
void* runOrb(void* arg)
327327
{

Compiler/runtime/omc_communication_impl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ extern "C" {
9393
#include <pthread.h>
9494
}
9595

96-
extern pthread_mutex_t clientlock;
96+
extern pthread_mutex_t omc_corba_clientlock;
9797

9898
extern pthread_cond_t omc_waitformsg;
9999
extern pthread_mutex_t omc_waitlock;
@@ -116,7 +116,7 @@ OmcCommunication_impl::OmcCommunication_impl()
116116

117117
char* OmcCommunication_impl::sendExpression( const char* expr )
118118
{
119-
pthread_mutex_lock(&clientlock);
119+
pthread_mutex_lock(&omc_corba_clientlock);
120120
char* result;
121121
// Signal to omc that message has arrived.
122122
pthread_mutex_lock(&omc_waitlock);
@@ -133,7 +133,7 @@ char* OmcCommunication_impl::sendExpression( const char* expr )
133133
corba_waiting = false;
134134
result = CORBA::string_dup(omc_reply_message);
135135
pthread_mutex_unlock(&corba_waitlock);
136-
pthread_mutex_unlock(&clientlock);
136+
pthread_mutex_unlock(&omc_corba_clientlock);
137137
return result; // Has already been string_dup (prepared for CORBA)
138138
}
139139

0 commit comments

Comments
 (0)