EV/libev with Inline::C in perl
Marc Lehmann
schmorp at schmorp.de
Sun Oct 2 00:13:59 CEST 2011
On Sat, Oct 01, 2011 at 02:12:21PM -0700, Ryan Bullock <rrb3942 at gmail.com> wrote:
> I am attempting to use EV/libev from Inline::C in an attempt to use
> direct callbacks to C functions for a few performance critical
> portions of a project I am working on.
Bad idea - Inline::C is rather windowsish and ports badly to other
platforms, and I am sure you will run into more problems.
> Would anyone mind taking a look at it and telling me where I am going
> wrong? Or is what I am attempting just not possible?
You need to initialise the EV API (EV::MakeMaker has the code for that,
specifically, see the BOOT: block, i.e. I_EV_API ("YourModule")) in your
namespace.
I don't know how to port BOOT blocks to Inline::C, but basically, you have
to make sure you execute the boot code in every .c file where you use the
EV api.
--
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 libev
mailing list