Accessing a lock object in a C module
Konrad Hinsen
hinsen at cnrs-orleans.fr
Thu Feb 3 05:42:48 EST 2000
David Fisher <python at rose164.wuh.wustl.edu> writes:
> The struct is at the top of threadmodule.c:
> /* Lock objects */
>
> typedef struct {
> PyObject_HEAD
> PyThread_type_lock lock_lock;
> } lockobject;
Fine, but I don't have access to this from another C module. Of course
I could copy the structure to my own code and hope that it will never
change in threadmodule, but that's not my preferred solution.
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69
Rue Charles Sadron | Fax: +33-2.38.63.15.17
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
-------------------------------------------------------------------------------
More information about the Python-list
mailing list