From 7566f9af827f3eecaddb09f5d11c590bd631d559 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sun, 21 Sep 2025 18:59:16 +0200 Subject: liberty: comment on pthread_cancel --- liberty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'liberty.c') diff --git a/liberty.c b/liberty.c index 0690e89..b13a388 100644 --- a/liberty.c +++ b/liberty.c @@ -1209,7 +1209,10 @@ async_make (struct async_manager *manager) } /// Only allowed from the main thread once the job has been started but before -/// the results have been dispatched +/// the results have been dispatched. +/// +/// Note that it may in practice lead to memory leakage, although that's +/// an implementation issue: https://eissing.org/icing/posts/rip_pthread_cancel/ static void async_cancel (struct async *self) { -- cgit v1.2.3-70-g09d2