Author: ArcRiley
Date: 2008-03-04 16:27:08 -0500 (Tue, 04 Mar 2008)
New Revision: 1031

Modified:
   trunk/pysoy/src/atoms/Face.pxi
   trunk/pysoy/src/atoms/Vertex.pxi
   trunk/pysoy/src/audio/Output.pxi
Log:
Ticket #901 :
  * atoms.Vertex needs more work
  * atoms.Face needs more work
  * actions clean
  * audio clean


Modified: trunk/pysoy/src/atoms/Face.pxi
===================================================================
--- trunk/pysoy/src/atoms/Face.pxi      2008-03-04 21:02:50 UTC (rev 1030)
+++ trunk/pysoy/src/atoms/Face.pxi      2008-03-04 21:27:08 UTC (rev 1031)
@@ -32,10 +32,8 @@
       # For an instance of an existing face
       if index >= self._list._arraySize :
         raise ValueError('index out of range')
-      self._list._children.lock()
-      self._list._children.append(<void *>self)
+      self._list._children._append(<void *> self)
       self._index = index
-      self._list._children.unlock()
     else :
       # For a brand new face
       if not (verts and material) :
@@ -81,9 +79,7 @@
 
   def __dealloc__(self) :
     if self._index >= 0 :
-      self._list._children.lock()
-      self._list._children.remove(<void *>self)
-      self._list._children.unlock()
+      self._list._children._remove(<void *> self)
 
 
   def __repr__(self) :
@@ -218,3 +214,9 @@
         self._list._flagUpdated(self._index, _oldindex - self._index + 1)
       self._list._children.unlock()
       mlist._children.unlock()
+
+# DIRTY! 43-76
+# DIRTY! 95-99
+# DIRTY! 110-115
+# DIRTY! 125-133
+# DIRTY! 143-216

Modified: trunk/pysoy/src/atoms/Vertex.pxi
===================================================================
--- trunk/pysoy/src/atoms/Vertex.pxi    2008-03-04 21:02:50 UTC (rev 1030)
+++ trunk/pysoy/src/atoms/Vertex.pxi    2008-03-04 21:27:08 UTC (rev 1031)
@@ -56,9 +56,7 @@
 
   def __dealloc__(self) :
     if self._index >= 0 :
-      self._list._children.lock()
-      self._list._children.remove(<void *>self)
-      self._list._children.unlock()
+      self._list._children._remove(<void *> self)
 
 
   def __repr__(self) :
@@ -161,3 +159,12 @@
           self._list._flagUpdated(self._index)
           self._list._children.unlock()
 
+# DIRTY! 38-46
+# DIRTY! 72-76
+# DIRTY! 87-92
+# DIRTY! 99-103
+# DIRTY! 110-115
+# DIRTY! 122-126
+# DIRTY! 133-138
+# DIRTY! 143-147
+# DIRTY! 155-160

Modified: trunk/pysoy/src/audio/Output.pxi
===================================================================
--- trunk/pysoy/src/audio/Output.pxi    2008-03-04 21:02:50 UTC (rev 1030)
+++ trunk/pysoy/src/audio/Output.pxi    2008-03-04 21:27:08 UTC (rev 1031)
@@ -36,9 +36,7 @@
     self._context = al.alcCreateContext(self._device, NULL)
     if self._context == NULL :
       raise SystemError('unable to create new audio context')
-    _outputs.lock()
-    _outputs.append(<void *>self)
-    _outputs.unlock()
+    _outputs._append(<void *> self)
 
   def __dealloc__(self) :
     if self._context :

_______________________________________________
PySoy-SVN mailing list
PySoy-SVN@pysoy.org
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to