diff options
Diffstat (limited to 'source3/libsmb/pylibsmb.c')
-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) |