diff options
author | Volker Lendecke <vl@samba.org> | 2012-09-22 10:40:06 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-09-23 07:20:20 -0700 |
commit | ff6840815d6e6252aa3fa27a4f04d992ab912d14 (patch) | |
tree | 3d994aa84b41f2d45aadc4dd9bcd99c4fd6cc0e1 | |
parent | d0a0fb32929e26ea9dd30cb3e2cacff03f68b9d2 (diff) | |
download | samba-ff6840815d6e6252aa3fa27a4f04d992ab912d14.tar.gz samba-ff6840815d6e6252aa3fa27a4f04d992ab912d14.tar.bz2 samba-ff6840815d6e6252aa3fa27a4f04d992ab912d14.zip |
s3-pylibsmb: Factor out py_tevent_cond_signal
-rw-r--r-- | source3/libsmb/pylibsmb.c | 12 |
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) |