Commit aee82981 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f72b7f1c
...@@ -58,7 +58,7 @@ cdef class PyWCFS: ...@@ -58,7 +58,7 @@ cdef class PyWCFS:
cdef class PyWatchLink: cdef class PyWatchLink:
cdef WatchLink *wlink cdef WatchLink *wlink
def __xinit__(PyWatchLink pywlink, PyWCFS pywc): def __init__(PyWatchLink pywlink, PyWCFS pywc):
with nogil: with nogil:
_ = wcfs_openwatch_pyexc(pywc.wc) _ = wcfs_openwatch_pyexc(pywc.wc)
pywlink.wlink = _.first pywlink.wlink = _.first
...@@ -67,6 +67,8 @@ cdef class PyWatchLink: ...@@ -67,6 +67,8 @@ cdef class PyWatchLink:
if err != nil: if err != nil:
raise RuntimeError(err.Error()) # XXX exc class? raise RuntimeError(err.Error()) # XXX exc class?
# XXX __dealloc__
def close(PyWatchLink pywlink): def close(PyWatchLink pywlink):
with nogil: with nogil:
err = wlink_close_pyexc(pywlink.wlink) err = wlink_close_pyexc(pywlink.wlink)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment