mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-111178: Fix function signature for test_threading (#131663)
This commit is contained in:
parent
da6730caa5
commit
78f1bac7f2
1 changed files with 3 additions and 2 deletions
|
@ -384,8 +384,9 @@ exit:
|
|||
}
|
||||
|
||||
static int
|
||||
force_done(ThreadHandle *handle)
|
||||
force_done(void *arg)
|
||||
{
|
||||
ThreadHandle *handle = (ThreadHandle *)arg;
|
||||
assert(get_thread_handle_state(handle) == THREAD_HANDLE_STARTING);
|
||||
_PyEvent_Notify(&handle->thread_is_exiting);
|
||||
set_thread_handle_state(handle, THREAD_HANDLE_DONE);
|
||||
|
@ -458,7 +459,7 @@ ThreadHandle_start(ThreadHandle *self, PyObject *func, PyObject *args,
|
|||
return 0;
|
||||
|
||||
start_failed:
|
||||
_PyOnceFlag_CallOnce(&self->once, (_Py_once_fn_t *)force_done, self);
|
||||
_PyOnceFlag_CallOnce(&self->once, force_done, self);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue