News for hackers. Stuff that matters.
Re:RIP pthread_cancel by sthustfo on Sunday September 14, 2025 @12:59AM (#45237563)
asynchronous cancellation (when compared to deferred) is only recommended in scenarios where the thread does not share any data, semaphore or conditional variables with other threads. The target thread tends to cleanup any data within the thread cleanup handlers via pthread_cleanup_pop(). If not, the entire application might end up going down. Async cancellation has a very narrow application scope imho.

There are no comments on this comment yet.