summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-09-22 10:40:06 -0700
committerVolker Lendecke <vl@samba.org>2012-09-23 07:20:20 -0700
commitff6840815d6e6252aa3fa27a4f04d992ab912d14 (patch)
tree3d994aa84b41f2d45aadc4dd9bcd99c4fd6cc0e1 /source3/libsmb
parentd0a0fb32929e26ea9dd30cb3e2cacff03f68b9d2 (diff)
downloadsamba-ff6840815d6e6252aa3fa27a4f04d992ab912d14.tar.gz
samba-ff6840815d6e6252aa3fa27a4f04d992ab912d14.tar.bz2
samba-ff6840815d6e6252aa3fa27a4f04d992ab912d14.zip
s3-pylibsmb: Factor out py_tevent_cond_signal
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/pylibsmb.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c
index 4225505dfa..778df08530 100644
--- a/source3/libsmb/pylibsmb.c
+++ b/source3/libsmb/pylibsmb.c
@@ -299,10 +299,8 @@ static int py_tevent_req_wait(struct tevent_context *ev,
return py_tevent_cond_wait(&cond);
}
-static void py_tevent_signalme(struct tevent_req *req)
+static void py_tevent_cond_signal(struct py_tevent_cond *cond)
{
- struct py_tevent_cond *cond = (struct py_tevent_cond *)
- tevent_req_callback_data_void(req);
int ret;
ret = pthread_mutex_lock(&cond->mutex);
@@ -316,6 +314,14 @@ static void py_tevent_signalme(struct tevent_req *req)
assert(ret == 0);
}
+static void py_tevent_signalme(struct tevent_req *req)
+{
+ struct py_tevent_cond *cond = (struct py_tevent_cond *)
+ tevent_req_callback_data_void(req);
+
+ py_tevent_cond_signal(cond);
+}
+
#else
static bool py_cli_state_setup_ev(struct py_cli_state *self)