Re: Is POE thread safe?
howard chen <[email protected]>
| Newsgroups | gmane.comp.lang.perl.poe |
|---|---|
| Message-ID | <[email protected]> |
Hello, On Sun, May 24, 2009 at 4:00 AM, Rocco Caputo <[email protected]> wrote: > In this case, response_handler() is always synchronized. > Thanks for reply. "In this case" do you mean in POE::Component::Client::HTTP or in generic POE handler? For example, if I create session this way... for (1..10) { POE::Session->create( inline_states => { _start => \&handler_start, increment => \&handler_increment, _stop => \&handler_stop, } ); } Is the handlers - "handler_increment" also synchronized so my global object can be safely accessed? Thanks. Thanks.