… | |
… | |
3504 | exit_main_loop = exit_nested_loop = 1; |
3504 | exit_main_loop = exit_nested_loop = 1; |
3505 | |
3505 | |
3506 | =head2 THREAD LOCKING EXAMPLE |
3506 | =head2 THREAD LOCKING EXAMPLE |
3507 | |
3507 | |
3508 | Here is a fictitious example of how to run an event loop in a different |
3508 | Here is a fictitious example of how to run an event loop in a different |
3509 | thread than where callbacks are being invoked and watchers are |
3509 | thread from where callbacks are being invoked and watchers are |
3510 | created/added/removed. |
3510 | created/added/removed. |
3511 | |
3511 | |
3512 | For a real-world example, see the C<EV::Loop::Async> perl module, |
3512 | For a real-world example, see the C<EV::Loop::Async> perl module, |
3513 | which uses exactly this technique (which is suited for many high-level |
3513 | which uses exactly this technique (which is suited for many high-level |
3514 | languages). |
3514 | languages). |