Update TODO again
This commit is contained in:
parent
7d750e4187
commit
a692a4cc46
15
TODO
15
TODO
@ -536,9 +536,18 @@ o pthreads (sched/pthreads)
|
|||||||
functions that are cancellation points on OpenGroup.org. In
|
functions that are cancellation points on OpenGroup.org. In
|
||||||
general:
|
general:
|
||||||
|
|
||||||
- Remove asynchronous cancellation. All cancellations must
|
- Two types of cancellation. DEFFERRED and ASYCNCHOOUS:
|
||||||
pend.
|
PTHREAD_CANCEL_DEFERRED: A cancellation request is deferred
|
||||||
- Check if the thread is within cancellation region, then
|
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
|
treat like a signal to wake up with -ECANCELED vs -EINTER
|
||||||
|
|
||||||
For each function/cancellation point
|
For each function/cancellation point
|
||||||
|
Loading…
x
Reference in New Issue
Block a user