mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
gh-111178: Fix function signatures in misc files (#131180)
This commit is contained in:
parent
e9d210bfc2
commit
9a63138e09
5 changed files with 19 additions and 13 deletions
|
|
@ -545,8 +545,9 @@ ThreadHandle_join(ThreadHandle *self, PyTime_t timeout_ns)
|
|||
}
|
||||
|
||||
static int
|
||||
set_done(ThreadHandle *handle)
|
||||
set_done(void *arg)
|
||||
{
|
||||
ThreadHandle *handle = (ThreadHandle*)arg;
|
||||
assert(get_thread_handle_state(handle) == THREAD_HANDLE_RUNNING);
|
||||
if (detach_thread(handle) < 0) {
|
||||
PyErr_SetString(ThreadError, "failed detaching handle");
|
||||
|
|
@ -564,7 +565,7 @@ ThreadHandle_set_done(ThreadHandle *self)
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (_PyOnceFlag_CallOnce(&self->once, (_Py_once_fn_t *)set_done, self) ==
|
||||
if (_PyOnceFlag_CallOnce(&self->once, set_done, self) ==
|
||||
-1) {
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue