root / trunk / pysoy / include / soy._internals.pxd

Revision 1265, 3.9 kB (checked in by ArcRiley, 5 months ago)

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
  • Property svn:keywords set to Id
Line 
1# PySoy _internals Declarations
2#
3# Copyright (C) 2006,2007,2008 PySoy Group
4#
5#  This program is free software; you can redistribute it and/or modify
6#  it under the terms of the GNU Affero General Public License as published
7#  by the Free Software Foundation, either version 3 of the License, or
8#  (at your option) any later version.
9#
10#  This program is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13#  GNU Affero General Public License for more details.
14#
15#  You should have received a copy of the GNU Affero General Public License
16#  along with this program; if not, see http://www.gnu.org/licenses
17#
18# $Id$
19
20cimport glib
21
22cdef class AsyncQueue :
23  cdef glib.GAsyncQueue* _asyncqueue
24  cdef void              _push         ( self, void* )                    nogil
25  cdef object            _pop          ( self )
26
27
28cdef class Children :
29  # C variables
30  cdef int               _size
31  cdef int               _current
32  cdef int               _iters
33  cdef void**            _list
34  cdef char*             _name
35  # Mutex locks
36  cdef void*             _lockMain
37  cdef void*             _lockIter
38  # Internal C functions
39  cdef int               _offset       ( self, void* )                    nogil
40  cdef void              _swap         ( self, int, int )                 nogil
41  # External C functions
42  cdef void              _append       ( self, void* )                    nogil
43  cdef void              _bottom       ( self, void* )                    nogil
44  cdef void              _empty        ( self )                           nogil
45  cdef int               _index        ( self, void* )                    nogil
46  cdef void              _iterDone     ( self )                           nogil
47  cdef void              _iterStart    ( self )                           nogil
48  cdef void              _lower        ( self, void* )                    nogil
49  cdef void              _raise        ( self, void* )                    nogil
50  cdef void              _remove       ( self, void* )                    nogil
51  cdef void              _top          ( self, void* )                    nogil
52
53
54cdef class Loadable :
55  cdef object            _source
56  cdef int               _state
57  cdef int               _load         ( self, void*, int )               nogil
58  cdef int               _save         ( self, void*, int )               nogil
59  cdef int               _ready        ( self )                           nogil
60
61
62cdef class Loopable :
63  cdef int               _loop         ( self )                           nogil
64
65cdef class LoopThread :
66  cdef long              _threadID
67  cdef int               _size
68  cdef int               _current
69  cdef int               _running
70  cdef int               _wake
71  cdef void**            _list
72  cdef void *            _listLock
73  cdef void *            _loopLock
74  cdef object            _name
75  cdef object            _active
76  cdef object            _active_limbo_lock
77  cdef void              _loop         ( self )                           nogil
78  cdef void              _append       ( self, void* )                    nogil
79  cdef void              _remove       ( self, void* )                    nogil
80
81
82cdef class PointerSet :
83  cdef glib.GHashTable*  _hashtable
84  cdef void              _insert       ( self, void* )                    nogil
85  cdef int               _has_key      ( self, void* )                    nogil
86  cdef int               _remove       ( self, void* )                    nogil
87  cdef void              _empty        ( self )                           nogil
88  cdef void              _foreach      ( self, glib.GHFunc, void* )       nogil
89
90
91# Extension-level C functions
92cdef void                _sleep        ( unsigned int )                   nogil
93cdef double              _time         ( )                                nogil
94cdef AsyncQueue          _getQueue     ( )
Note: See TracBrowser for help on using the browser.