Re: When a bonobo call is executed in my object?
"Nickolay V. Shmyrev" <[email protected]> Tue, 16 May 2006 02:40:26 +0400
| Newsgroups | gmane.comp.gnome.components |
|---|---|
| Message-ID | <[email protected]> |
=D0=92 =D0=9F=D0=BD=D0=B4, 15/05/2006 =D0=B2 09:36 -0300, Carlos Eduardo Ro= drigues Di=C3=B3genes =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > 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. 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 Although this scheme can be more complicated - POA may be configured to run all requests in separate thread, run every request in separate thread and so on. Request processing scheme depends on your own. Look into the into orbit-adaptor.h for additional information. Here is the example of usage: http://jmvanel.free.fr/corba/orbit-docs/examples/threaded-calculator/?S=3DA Please note that threaded programming is quite complicated, you should be very careful.