Dag, I know that the original idea of the dlopen() with RTLD_GLOBAL
was mine, but you know... I'm so idiot sometimes... This is going to
be a REAL pain to make it work, specially if you want to make this
easily portable to the many platforms out there.... For example, Do
the current implementation work on Windows?

Would you agree to completelly change the way the refnany helper
routines are imported?. I'm thinking on a ad-hoc way of doing that,
similar but simpler to the way Cython extension modules can export API
functions.

The only requisite would be that the 'refnanny.so' extension module
can be imported. Then, when you build Cython extensions with
CYTHON_REFNANNY defined, some special code in the module init function
imports the 'refnanny' module and get the pointer to a struct having
pointers to the various routines... No more need to dlopen() or even
import refnanny in order to enable it....

What do you think?


-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to