develooper Front page | perl.perl5.porters | Postings from July 2001

Re: Asynchronous callbacks from C

Thread Previous | Thread Next
From:
Paul Johnson
Date:
July 5, 2001 08:04
Subject:
Re: Asynchronous callbacks from C
Message ID:
20010705170558.C16286@pjcj.net
On Thu, Jul 05, 2001 at 08:42:52AM -0500, David M. Lloyd wrote:

> Exactly what is a plugable runops function?  Is that something that exists
> in perl today (5.6)?  Is there an API interface to it?

It is a feature that Malcolm added when he first started on the compiler
stuff, if I remember correctly.  However, it does appear to be rather
sparsely documented (in other words I can't find any reference to it in
the core.)

I believe Malcolm used it in an opcode profiler module, probably on CPAN
somewhere, and I have used it in Devel::Cover also on CPAN.

Its actually fairly simple, you write your own runops function and tell
Perl to use it.  See Cover.xs in Devel::Cover for a working example.

I'm busy looking for a job at the moment, but I may find some time to
document it if no one else does.

-- 
Paul Johnson - paul@pjcj.net
http://www.pjcj.net

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About