[Python-Dev] working with Python threads from C extension module? (original) (raw)
Bill Janssen janssen at parc.com
Sat Sep 8 01:20:35 CEST 2007
- Previous message: [Python-Dev] working with Python threads from C extension module?
- Next message: [Python-Dev] working with Python threads from C extension module?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
#define SSLALLOWTHREADS {if (ssllocks != NULL) { PyBEGINALLOWTHREADS }} #define SSLDISALLOWTHREADS {if (ssllocks != NULL) { PyBEGINALLOWTHREADS }}
I'd forgotten how convoluted Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS were. Anyone have any other suggestions about how to do this?
Raise an error if loaded in a non-threaded environment, then used in a threaded environment? Dynamic initialization of threading?
Bill
- Previous message: [Python-Dev] working with Python threads from C extension module?
- Next message: [Python-Dev] working with Python threads from C extension module?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]