mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3-pylibsmb: Factor out py_tevent_cond_signal
This commit is contained in:
parent
d0a0fb3292
commit
ff6840815d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user