Issue with AnyEvent::AIO
Marc Lehmann
schmorp at schmorp.de
Mon Jul 3 15:03:33 CEST 2023
On Mon, Jul 03, 2023 at 08:47:09AM +0200, Dominik Csapak <d.csapak at proxmox.com> wrote:
> We had a 'use AnyEvent:IO' statement even though we did not use any of it.
I tried to reproduce this, but was not able to, regardless of whether I load
AnyEvent::AIO or not, in any order.
The only way I can make it initialise AnyEvent is by calling an aio_
function.
The only thing where I can see this makling a difference is when you (or
some other code) _does_ call an AnyEvent::IO function: If AnyEvent::AIO
and IO::AIO are available, this will initialise AnyEvent. Otherwise,
AnyEvent is not used, as the pure perl implementation of AnyEvent::IO will
not (currently) use AnyEvent itself.
Thats about the only thing that could explain the difference in behaviour.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list