[PD-cvs] externals/grill/py/source main.cpp, 1.35, 1.36 main.h, 1.40, 1.41

Thomas Grill xovo at users.sourceforge.net
Wed Jul 6 23:39:28 CEST 2005


Update of /cvsroot/pure-data/externals/grill/py/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27770/source

Modified Files:
	main.cpp main.h 
Log Message:
added xcode project
better reload handling, but still far fom perfect
fixed minor other issues
bumped version number
made some methods static


Index: main.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/main.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** main.cpp	18 Apr 2005 15:11:43 -0000	1.35
--- main.cpp	6 Jul 2005 21:39:09 -0000	1.36
***************
*** 625,626 ****
--- 625,632 ----
      return true;
  }
+ 
+ /*
+ PY_EXPORT PyThreadState *py_Lock(PyThreadState *st = NULL) { return pybase::PyLock(st?st:pybase::FindThreadState()); }
+ PY_EXPORT PyThreadState *py_LockSys() { return pybase::PyLockSys(); }
+ PY_EXPORT void py_Unlock(PyThreadState *st) { pybase::PyUnlock(st); }
+ */

Index: main.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/main.h,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** main.h	18 Apr 2005 15:11:43 -0000	1.40
--- main.h	6 Jul 2005 21:39:26 -0000	1.41
***************
*** 26,30 ****
  #endif
  
! #define PY__VERSION "0.2.0pre"
  
  
--- 26,30 ----
  #endif
  
! #define PY__VERSION "0.2.0"
  
  
***************
*** 201,205 ****
      static int lockcount;
  
! 	inline PyThreadState *PyLock(PyThreadState *st = FindThreadState()) 
      { 
          if(!IsSystemThread() || !lockcount++) PyEval_AcquireLock();
--- 201,205 ----
      static int lockcount;
  
! 	static PyThreadState *PyLock(PyThreadState *st = FindThreadState()) 
      { 
          if(!IsSystemThread() || !lockcount++) PyEval_AcquireLock();
***************
*** 207,211 ****
      }
  
! 	inline PyThreadState *PyLockSys() 
      { 
          if(!lockcount++) PyEval_AcquireLock();
--- 207,211 ----
      }
  
! 	static PyThreadState *PyLockSys() 
      { 
          if(!lockcount++) PyEval_AcquireLock();
***************
*** 213,217 ****
      }
  
! 	inline void PyUnlock(PyThreadState *st) 
      {
          PyThreadState *old = PyThreadState_Swap(st);
--- 213,217 ----
      }
  
! 	static void PyUnlock(PyThreadState *st) 
      {
          PyThreadState *old = PyThreadState_Swap(st);
***************
*** 223,229 ****
  	inline void Unlock() {}
  
! 	inline PyThreadState *PyLock(PyThreadState * = NULL) { return NULL; }
! 	inline PyThreadState *PyLockSys() { return NULL; }
! 	inline void PyUnlock(PyThreadState *st) {}
  #endif
  
--- 223,229 ----
  	inline void Unlock() {}
  
! 	static PyThreadState *PyLock(PyThreadState * = NULL) { return NULL; }
! 	static PyThreadState *PyLockSys() { return NULL; }
! 	static void PyUnlock(PyThreadState *st) {}
  #endif
  





More information about the Pd-cvs mailing list