kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 06fd5ca2f25728687abe0f497780cf28a56bc039
parent c3b2a8b2a2717084cffdfa05c1c4e2c853617ea3
Author: Joris Vink <joris@coders.se>
Date:   Fri, 20 Sep 2019 09:56:21 +0200

Add aqcuire() and release() to pylock.

This allows it to be used from code without requiring the async with
context manager approach.

Diffstat:
include/kore/python_methods.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/kore/python_methods.h b/include/kore/python_methods.h @@ -359,6 +359,8 @@ static PyObject *pylock_aexit(struct pylock *, PyObject *); static PyObject *pylock_aenter(struct pylock *, PyObject *); static PyMethodDef pylock_methods[] = { + METHOD("aqcuire", pylock_aenter, METH_NOARGS), + METHOD("release", pylock_aexit, METH_NOARGS), METHOD("__aexit__", pylock_aexit, METH_VARARGS), METHOD("__aenter__", pylock_aenter, METH_NOARGS), METHOD(NULL, NULL, -1)