[omniORB] How to get file descriptor from a CORBA request?

Alberto Casado Martín alberto.casado.martin at gmail.com
Sat Sep 30 11:50:14 BST 2006


Hello,

  Is there anyway we can force a single thread model in omniORB?  It will be
a big job for us to
make our code thread safe.

Yes, you can do that configuring your POA in SINGLE_THREAD_MODEL.


 12 CHAPTER 2. THE BASICS
>
>
 Multi-threading
> As omniORB is fully multithreaded, multiple threads may perform the same
> upcall to your implementation concurrently. It is up to your
> implementation
> to synchronise the threads' accesses to shared data. In our simple
> example,
> we have no shared data to protect so no thread synchronisation is
> necessary.
> Alternatively, you can create a POA which has the SINGLE_THREAD_MODEL
> Thread Policy. This guarantees that all calls to that POA are processed
> sequentially.
>


Cheers.
Alberto.

2006/9/29, Tuyen Chau <tchau at verano.com>:
>
> Duncan Grisby wrote:
> > The normal approach is to put something in per-thread state. You don't
> > want to put it on the servant object because multiple clients could call
> > a single servant concurrently.
> >
> > Cheers,
> >
> > Duncan
> This brings up another problem for us that we didn't anticipate.  Our
> implementation unfortunately is not thread safe.  Is there anyway we can
> force a single thread model in omniORB?  It will be a big job for us to
> make our code thread safe.
>
> Thanks for your response,
> Tuyen
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20060930/62bcc20d/attachment.htm


More information about the omniORB-list mailing list