HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sthustfo

no profile record

comments

sthustfo
·10 maanden geleden·discuss
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.