Re: Official way to enable threading in ORBit2?



On Thu, 2005-12-01 at 17:55 +0000, Gustavo J. A. M. Carneiro wrote:
> Regarding http://bugzilla.gnome.org/show_bug.cgi?id=126477
> 
> I found this FAQ entry[1]:
> 
> "  *** How do I enable a threaded ORB ?
> 
> 	Before you initialize the ORB ( or bonobo ) you need to call
>   linc_set_threaded (TRUE), this will cause all the locking to be setup
>   correctly. Calling this after locks have been created will not work."
> 
> On the other hand, google found me an example[2] that contains this:
> 
>         (*orb) = CORBA_ORB_init(argc_ptr, argv, "orbit-local-mt-orb", ev);

The ORB is forced into threaded I/O mode if the string "orbit-io-thread"
is found anywhere in the ORB name. There is no checking for
"orbit-local-mt-orb" anywhere in the source.

-- 
  jules



> instead of the linc_set_threaded call.  So, which version is more
> correct?  Thanks in advance.
> 
> [1] http://orbit-resource.sourceforge.net/faq2-0.2.html
> [2] http://www.gnome.org/projects/ORBit2/orbit-docs/orbit/x1223.html
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]