1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00

configure: stop probing for pthread_cancel

HAVE_PTHREAD_CANCEL has no consumers left: udp no longer cancels its
receive thread, and the dnn guards were already removed.

Android bionic and Windows w32threads do not provide pthread_cancel(),
and on Darwin a cancel request made while cancellation is disabled may
never acted on (see PR #24886). Probing for pthread_cancel may invite
new code to depend on it.

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
Zhao Zhili
2026-10-17 14:14:00 +08:00
committed by Zhao Zhili
parent 4bef4614fe
commit 47ece046a6

2
configure vendored
View File

@@ -2536,7 +2536,6 @@ SYSTEM_FUNCS="
PeekNamedPipe
posix_memalign
prctl
pthread_cancel
pthread_set_name_np
pthread_setaffinity_np
pthread_setname_np
@@ -7162,7 +7161,6 @@ if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then
if enabled pthreads; then
check_builtin sem_timedwait semaphore.h "sem_t *s; sem_init(s,0,0); sem_timedwait(s,0); sem_destroy(s)" $pthreads_extralibs
check_func pthread_cancel $pthreads_extralibs
hdrs=pthread.h
if enabled pthread_np_h; then
hdrs="$hdrs pthread_np.h"