Re: When a bonobo call is executed in my object?
"Nickolay V. Shmyrev" <[email protected]> Thu, 18 May 2006 23:03:25 +0400 (MSD)
| Newsgroups | gmane.comp.gnome.components |
|---|---|
| Message-ID | <[email protected]> |
>On Tue, 2006-05-16 at 02:40 +0400, Nickolay V. Shmyrev wrote: >> =F7 =F0=CE=C4, 15/05/2006 =D7 09:36 -0300, Carlos Eduardo Rodrigues Di= genes >> =D0=C9=DB=C5=D4: >> > Hi, >> >=20 >> > When my object is running it's executing a lot of computations. When >> > this object receive a bonobo call, how it's processed? Can someone >> > explaim how is the flow from the client call until my code? >> >=20 >> > Thanks. >>=20 >> Usually server is running a mainloop, and periodically checks/polls >> socket for incoming messages. If your program blocks mainloop during >> request processing, object may not respond to other client requests.=20 >>=20 >> Although this scheme can be more complicated - POA may be configured t= o >> run all requests in separate thread, run every request in separate >> thread and so on. Request processing scheme depends on your own. >>=20 >> Look into the into orbit-adaptor.h for additional information. Here is >> the example of usage: > >Where orbit-adaptor.h is located. I download ORBit from cvs, but I can't >find it. > >>=20 >> http://jmvanel.free.fr/corba/orbit-docs/examples/threaded-calculator/?= S=3DA >>=20 >> Please note that threaded programming is quite complicated, you should >> be very careful. >>=20 >>=20 http://cvs.gnome.org/viewcvs/ORBit2/include/orbit/poa/orbit-adaptor.h?rev= =3D1.16&view=3Dmarkup