… | |
… | |
372 | |
372 | |
373 | The default server used in the child does all I/O blockingly, and only |
373 | The default server used in the child does all I/O blockingly, and only |
374 | allows a single RPC call to execute concurrently. |
374 | allows a single RPC call to execute concurrently. |
375 | |
375 | |
376 | Setting C<async> to a true value switches to another implementation that |
376 | Setting C<async> to a true value switches to another implementation that |
377 | uses L<AnyEvent> in the child and allows multiple concurrent RPC calls. |
377 | uses L<AnyEvent> in the child and allows multiple concurrent RPC calls (it |
|
|
378 | does not support recursion in the event loop however, blocking condvar |
|
|
379 | calls will fail). |
378 | |
380 | |
379 | The actual API in the child is documented in the section that describes |
381 | The actual API in the child is documented in the section that describes |
380 | the calling semantics of the returned C<$rpc> function. |
382 | the calling semantics of the returned C<$rpc> function. |
381 | |
383 | |
382 | If you want to pre-load the actual back-end modules to enable memory |
384 | If you want to pre-load the actual back-end modules to enable memory |
… | |
… | |
693 | are queued and the jobs are slow, they will all run concurrently. The |
695 | are queued and the jobs are slow, they will all run concurrently. The |
694 | child must implement some queueing/limiting mechanism if this causes |
696 | child must implement some queueing/limiting mechanism if this causes |
695 | problems. Alternatively, the parent could limit the amount of rpc calls |
697 | problems. Alternatively, the parent could limit the amount of rpc calls |
696 | that are outstanding. |
698 | that are outstanding. |
697 | |
699 | |
|
|
700 | Blocking use of condvars is not supported. |
|
|
701 | |
698 | Using event-based modules such as L<IO::AIO>, L<Gtk2>, L<Tk> and so on is |
702 | Using event-based modules such as L<IO::AIO>, L<Gtk2>, L<Tk> and so on is |
699 | easy. |
703 | easy. |
700 | |
704 | |
701 | =back |
705 | =back |
702 | |
706 | |