[omniORB] Thread Safe

Sai-Lai Lo S.Lo@orl.co.uk
Wed, 25 Mar 1998 16:26:32 GMT


>>>>> Martin Gee writes:

> Question:
> Does this mean I must mutex lock and unlock in data sensitive areas in a
> implementation e.g.

> void foo::bar()
> {
> 	pthread_mutex_lock(&lock);
> 	globaldata++;
> 	pthread_mutex_unlock(&lock);
> }

YES.


> Or is data synchronization happening in the upcall implicitly by the
> ORB?  (Is the call bar synchronized for you by omni).

NO.