Discussion:
[omniORB] Using pthread calls inside a omnithread
Marcel Schoch
2007-10-09 21:41:12 UTC
Permalink
Hi everybody

I'd like to now if it is a problem when I'm calling pthread functions
inside a omniorb server function. As the server function runs inside
a omnithread, this may cause problems/crashes? I'm having strange
crashes and was not able to track down the problem yet, therefore my
generic question.

Thanks for any answer.

Regards,
Marcel
Gerd Schmitt
2007-10-09 22:26:06 UTC
Permalink
Hi Marcel,

I'm using pthreads in a omniORB server application and encouter
no problems. However, I am not sure what you mean with
"a server function running inside a omnithread".
I spawn my extra pthread before doing any omniorb specific stuff.
Be aware that concurent access to some resources may yield
unobvious problem.

Btw., I'm running Linux.

Hth,

Gerd
Post by Marcel Schoch
Hi everybody
I'd like to now if it is a problem when I'm calling pthread functions
inside a omniorb server function. As the server function runs inside a
omnithread, this may cause problems/crashes? I'm having strange crashes
and was not able to track down the problem yet, therefore my generic
question.
Thanks for any answer.
Regards,
Marcel
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
Gerd Schmitt
externer Dienstleister der
Krauss-Maffei Wegmann GmbH & Co. KG
Krauss-Maffei-Str. 11
80997 M?nchen
Tel: +49/89/8140.4877
***@kmweg.de

---------------------------------------

IT-Studio GmbH
Zugspitzstra?e 23, D-82223 Eichenau

Fon: +49 (0) 8141-537 20 84
Fax: +49 (0) 8141-537 20 99

***@it-studio.de
www.it-studio.de

---------------------------------------
A triangle was a big improvement over the square wheel: it eliminated one bump.
Jason Etheridge
2007-10-10 01:54:44 UTC
Permalink
Post by Marcel Schoch
I'd like to now if it is a problem when I'm calling pthread functions
inside a omniorb server function. As the server function runs inside
a omnithread, this may cause problems/crashes? I'm having strange
crashes and was not able to track down the problem yet, therefore my
generic question.
It should be fine, since omnithreads almost certainly use the pthread
API in its implementation on your target platform. So
acquiring/releasing mutexes, signalling and/or waiting on condition
variables and whatever else (including spawning new threads) should
not cause you any problem.
--
Jason Etheridge mailto:***@etheridge.org
Loading...