Changeset 1265 for trunk/pysoy/src/_internals/Children.pym
- Timestamp:
- 05/18/08 13:14:51 (5 months ago)
- Files:
-
- 1 modified
-
trunk/pysoy/src/_internals/Children.pym (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pysoy/src/_internals/Children.pym
r1233 r1265 63 63 # 64 64 65 cdef int _offset(self, void* _child) :65 cdef int _offset(self, void* _child) nogil : 66 66 cdef int _i 67 67 for _i from 0 <= _i < self._current : … … 71 71 72 72 73 cdef void _swap(self, int _first, int _second) :73 cdef void _swap(self, int _first, int _second) nogil : 74 74 cdef void* _sibling 75 75 _sibling = self._list[_first] … … 83 83 # 84 84 85 cdef void _append(self, void* _child) :85 cdef void _append(self, void* _child) nogil : 86 86 py.PyThread_acquire_lock(self._lockMain, 1) 87 87 # … … 98 98 99 99 100 cdef void _top(self, void* _child) :100 cdef void _top(self, void* _child) nogil : 101 101 cdef int _offset 102 102 py.PyThread_acquire_lock(self._lockMain, 1) … … 114 114 115 115 116 cdef void _bottom(self, void* _child) :116 cdef void _bottom(self, void* _child) nogil : 117 117 cdef int _offset 118 118 py.PyThread_acquire_lock(self._lockMain, 1) … … 128 128 129 129 130 cdef void _empty(self) :130 cdef void _empty(self) nogil : 131 131 py.PyThread_acquire_lock(self._lockMain, 1) 132 132 # Wait until all iterations are complete … … 140 140 141 141 142 cdef int _index(self, void* _child) :142 cdef int _index(self, void* _child) nogil : 143 143 cdef int _i 144 144 self._iterStart() … … 148 148 149 149 150 cdef void _iterDone(self) :150 cdef void _iterDone(self) nogil : 151 151 py.PyThread_acquire_lock(self._lockIter, 1) 152 152 self._iters = self._iters - 1 … … 154 154 155 155 156 cdef void _iterStart(self) :156 cdef void _iterStart(self) nogil : 157 157 py.PyThread_acquire_lock(self._lockMain, 1) 158 158 py.PyThread_acquire_lock(self._lockIter, 1) … … 162 162 163 163 164 cdef void _lower(self, void* _child) :164 cdef void _lower(self, void* _child) nogil : 165 165 cdef int _offset 166 166 py.PyThread_acquire_lock(self._lockMain, 1) … … 174 174 175 175 176 cdef void _raise(self, void* _child) :176 cdef void _raise(self, void* _child) nogil : 177 177 cdef int _offset 178 178 py.PyThread_acquire_lock(self._lockMain, 1) … … 188 188 189 189 190 cdef void _remove(self, void* _child) :190 cdef void _remove(self, void* _child) nogil : 191 191 cdef int _i, _offset 192 192 py.PyThread_acquire_lock(self._lockMain, 1)
