Show
Ignore:
Timestamp:
05/18/08 13:14:51 (5 months ago)
Author:
ArcRiley
Message:

Pyrex 0.9.8.2 fixes :

  • now requires 0.9.8.2
  • nogil goes everywhere
  • a few functions got GIL-cleaned
  • still doesn't compile, but many steps closer
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pysoy/src/_internals/Children.pym

    r1233 r1265  
    6363  # 
    6464 
    65   cdef int _offset(self, void* _child) : 
     65  cdef int _offset(self, void* _child) nogil : 
    6666    cdef int _i 
    6767    for _i from 0 <= _i < self._current : 
     
    7171 
    7272 
    73   cdef void _swap(self, int _first, int _second) : 
     73  cdef void _swap(self, int _first, int _second) nogil : 
    7474    cdef void* _sibling 
    7575    _sibling = self._list[_first] 
     
    8383  # 
    8484 
    85   cdef void _append(self, void* _child) : 
     85  cdef void _append(self, void* _child) nogil : 
    8686    py.PyThread_acquire_lock(self._lockMain, 1) 
    8787    # 
     
    9898 
    9999 
    100   cdef void _top(self, void* _child) : 
     100  cdef void _top(self, void* _child) nogil : 
    101101    cdef int _offset 
    102102    py.PyThread_acquire_lock(self._lockMain, 1) 
     
    114114 
    115115 
    116   cdef void _bottom(self, void* _child) : 
     116  cdef void _bottom(self, void* _child) nogil : 
    117117    cdef int _offset 
    118118    py.PyThread_acquire_lock(self._lockMain, 1) 
     
    128128 
    129129 
    130   cdef void _empty(self) : 
     130  cdef void _empty(self) nogil : 
    131131    py.PyThread_acquire_lock(self._lockMain, 1) 
    132132    # Wait until all iterations are complete 
     
    140140 
    141141 
    142   cdef int _index(self, void* _child) : 
     142  cdef int _index(self, void* _child) nogil : 
    143143    cdef int _i 
    144144    self._iterStart() 
     
    148148     
    149149 
    150   cdef void _iterDone(self) : 
     150  cdef void _iterDone(self) nogil : 
    151151    py.PyThread_acquire_lock(self._lockIter, 1) 
    152152    self._iters = self._iters - 1 
     
    154154   
    155155 
    156   cdef void _iterStart(self) : 
     156  cdef void _iterStart(self) nogil : 
    157157    py.PyThread_acquire_lock(self._lockMain, 1) 
    158158    py.PyThread_acquire_lock(self._lockIter, 1) 
     
    162162 
    163163 
    164   cdef void _lower(self, void* _child) : 
     164  cdef void _lower(self, void* _child) nogil : 
    165165    cdef int _offset 
    166166    py.PyThread_acquire_lock(self._lockMain, 1) 
     
    174174 
    175175 
    176   cdef void _raise(self, void* _child) : 
     176  cdef void _raise(self, void* _child) nogil : 
    177177    cdef int _offset 
    178178    py.PyThread_acquire_lock(self._lockMain, 1) 
     
    188188 
    189189 
    190   cdef void _remove(self, void* _child) : 
     190  cdef void _remove(self, void* _child) nogil : 
    191191    cdef int _i, _offset 
    192192    py.PyThread_acquire_lock(self._lockMain, 1)