Update of /cvsroot/pure-data/externals/grill/py/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11456/source
Modified Files: pybase.cpp Log Message: fixes for pthreads version 2 fixes for pthreads V2
Index: pybase.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/source/pybase.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pybase.cpp 26 Sep 2005 13:59:59 -0000 1.11 --- pybase.cpp 6 Dec 2005 21:54:32 -0000 1.12 *************** *** 28,32 **** #ifdef FLEXT_THREADS
! typedef std::map<flext::thrid_t,PyThreadState *> PyThrMap;
static PyInterpreterState *pymain = NULL; --- 28,44 ---- #ifdef FLEXT_THREADS
! class ThrCmp ! { ! public: ! inline bool operator()(const flext::thrid_t &a,const flext::thrid_t &b) const ! { ! if(sizeof(a) == sizeof(size_t)) ! return *(size_t *)&a < *(size_t *)&b; ! else ! return memcmp(&a,&b,sizeof(a)) < 0; ! } ! }; ! ! typedef std::map<flext::thrid_t,PyThreadState *,ThrCmp> PyThrMap;
static PyInterpreterState *pymain = NULL;