Remix.run Logo
juliangmp 2 days ago

I feel like the entire pthread_cancel and cancellation point feature is only really useful when your application is exiting and resource management doesn't matter anymore. If you want to use it on a long running process, the thread that gets canceled must effectively be completely free of any resource allocation....

Unless of course you're making use of shared memory between processes, then you could still leak even when the entire process is shut down.