diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-09-06 16:31:13 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-09-06 16:31:13 -0700 |
commit | 3d57e14df7ba5f14a634295caf3b2e60da50bfe2 (patch) | |
tree | 4903bcb79a49ad714a1a9129765b9545405c9978 /python/gevent/__semaphore.pxd | |
parent | ac32b24b2a011292b704a3f27e8fd08a7ae9424b (diff) | |
download | yt-local-3d57e14df7ba5f14a634295caf3b2e60da50bfe2.tar.lz yt-local-3d57e14df7ba5f14a634295caf3b2e60da50bfe2.tar.xz yt-local-3d57e14df7ba5f14a634295caf3b2e60da50bfe2.zip |
Remove windows python distribution from repo and add requirements.txt
Diffstat (limited to 'python/gevent/__semaphore.pxd')
-rw-r--r-- | python/gevent/__semaphore.pxd | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/python/gevent/__semaphore.pxd b/python/gevent/__semaphore.pxd deleted file mode 100644 index 5c8ecf1..0000000 --- a/python/gevent/__semaphore.pxd +++ /dev/null @@ -1,54 +0,0 @@ -cimport cython - -from gevent.__hub_local cimport get_hub_noargs as get_hub -cdef Timeout - -cdef bint _greenlet_imported - -cdef extern from "greenlet/greenlet.h": - - ctypedef class greenlet.greenlet [object PyGreenlet]: - pass - - # These are actually macros and so much be included - # (defined) in each .pxd, as are the two functions - # that call them. - greenlet PyGreenlet_GetCurrent() - void PyGreenlet_Import() - -cdef inline greenlet getcurrent(): - return PyGreenlet_GetCurrent() - -cdef inline void greenlet_init(): - global _greenlet_imported - if not _greenlet_imported: - PyGreenlet_Import() - _greenlet_imported = True - - -cdef void _init() - - -cdef class Semaphore: - cdef public int counter - cdef readonly list _links - cdef readonly object _notifier - cdef public int _dirty - cdef object __weakref__ - - cpdef bint locked(self) - cpdef int release(self) except -1000 - cpdef rawlink(self, object callback) - cpdef unlink(self, object callback) - cpdef _start_notify(self) - cpdef _notify_links(self) - cdef _do_wait(self, object timeout) - cpdef int wait(self, object timeout=*) except -1000 - cpdef bint acquire(self, int blocking=*, object timeout=*) except -1000 - cpdef __enter__(self) - cpdef __exit__(self, object t, object v, object tb) - -cdef class BoundedSemaphore(Semaphore): - cdef readonly int _initial_value - - cpdef int release(self) except -1000 |