From a692a4cc46a194e0f7c39fc01586dba332d6c089 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 8 Dec 2016 13:34:18 -0600 Subject: [PATCH] Update TODO again --- TODO | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 5441ac9bae..72472dfb23 100644 --- a/TODO +++ b/TODO @@ -536,9 +536,18 @@ o pthreads (sched/pthreads) functions that are cancellation points on OpenGroup.org. In general: - - Remove asynchronous cancellation. All cancellations must - pend. - - Check if the thread is within cancellation region, then + - Two types of cancellation. DEFFERRED and ASYCNCHOOUS: + PTHREAD_CANCEL_DEFERRED: A cancellation request is deferred + until the thread next calls a function that is a cancellation + point. This is the default cancelability type for all + threads. + PTHREAD_CANCEL_ASYNCHRONOUS: The thread can be canceled at + any time + DEFERRED should be the default but currently only + asyncrhononous is supported by NuttX + - To implement DEFERRED mode: + All cancellations must pend. + Check if the thread is within cancellation region, then treat like a signal to wake up with -ECANCELED vs -EINTER For each function/cancellation point