Commit c5c576d2 authored by Kirill Smelkov's avatar Kirill Smelkov

sync: Rename WaitGroup-related pyexc functions wg_*_pyexc -> waitgroup_*_pyexc

We will soon land WorkGroup into sync.pyx; Before that let's renamge
WaitGroup helpers to avoid ambiguity of what "wg" means - WaitGroup or
WorkGroup?

This amends b316e504 (sync: Move/Port WaitGroup to C++/Pyx nogil).
parent 4fb9b51c
...@@ -113,15 +113,15 @@ cdef class PyWaitGroup: ...@@ -113,15 +113,15 @@ cdef class PyWaitGroup:
def done(PyWaitGroup pywg): def done(PyWaitGroup pywg):
with nogil: with nogil:
wg_done_pyexc(&pywg.wg) waitgroup_done_pyexc(&pywg.wg)
def add(PyWaitGroup pywg, int delta): def add(PyWaitGroup pywg, int delta):
with nogil: with nogil:
wg_add_pyexc(&pywg.wg, delta) waitgroup_add_pyexc(&pywg.wg, delta)
def wait(PyWaitGroup pywg): def wait(PyWaitGroup pywg):
with nogil: with nogil:
wg_wait_pyexc(&pywg.wg) waitgroup_wait_pyexc(&pywg.wg)
# ---- misc ---- # ---- misc ----
...@@ -138,9 +138,9 @@ cdef nogil: ...@@ -138,9 +138,9 @@ cdef nogil:
void mutexunlock_pyexc(Mutex *mu) except +topyexc: void mutexunlock_pyexc(Mutex *mu) except +topyexc:
mu.unlock() mu.unlock()
void wg_done_pyexc(WaitGroup *wg) except +topyexc: void waitgroup_done_pyexc(WaitGroup *wg) except +topyexc:
wg.done() wg.done()
void wg_add_pyexc(WaitGroup *wg, int delta) except +topyexc: void waitgroup_add_pyexc(WaitGroup *wg, int delta) except +topyexc:
wg.add(delta) wg.add(delta)
void wg_wait_pyexc(WaitGroup *wg) except +topyexc: void waitgroup_wait_pyexc(WaitGroup *wg) except +topyexc:
wg.wait() wg.wait()
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