Re: When a bonobo call is executed in my object?
- From: "Nickolay V. Shmyrev" <nshmyrev yandex ru>
- To: Carlos Eduardo Rodrigues Diógenes <cerdiogenes yahoo com br>
- Cc: gnome-components-list gnome org
- Subject: Re: When a bonobo call is executed in my object?
- Date: Tue, 16 May 2006 02:40:26 +0400
В Пнд, 15/05/2006 в 09:36 -0300, Carlos Eduardo Rodrigues Diógenes
> 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?
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.
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:
Please note that threaded programming is quite complicated, you should
be very careful.
] [Thread Prev