Official way to enable threading in ORBit2?



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);

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

-- 
Gustavo J. A. M. Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>
The universe is always one step beyond logic



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