File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -310,18 +310,18 @@ Please stop or kill the other OMC process first!\nOpenModelica OMC will now exit
310310
311311using 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
326326void * runOrb (void * arg)
327327{
Original file line number Diff line number Diff 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
9898extern pthread_cond_t omc_waitformsg;
9999extern pthread_mutex_t omc_waitlock;
@@ -116,7 +116,7 @@ OmcCommunication_impl::OmcCommunication_impl()
116116
117117char * 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
You can’t perform that action at this time.
0 commit comments