@@ -253,25 +253,25 @@ class Thread : private mbed::NonCopyable<Thread> {
253
253
254
254
/* * State of the Thread */
255
255
enum State {
256
- Inactive, /* *< Not created */
256
+ Inactive, /* *< NOT USED */
257
257
Ready, /* *< Ready to run */
258
258
Running, /* *< Running */
259
259
WaitingDelay, /* *< Waiting for a delay to occur */
260
- WaitingJoin, /* *< Waiting for thread to join */
260
+ WaitingJoin, /* *< Waiting for thread to join. Only happens when using RTX directly. */
261
261
WaitingThreadFlag, /* *< Waiting for a thread flag to be set */
262
262
WaitingEventFlag, /* *< Waiting for a event flag to be set */
263
263
WaitingMutex, /* *< Waiting for a mutex event to occur */
264
264
WaitingSemaphore, /* *< Waiting for a semaphore event to occur */
265
265
WaitingMemoryPool, /* *< Waiting for a memory pool */
266
266
WaitingMessageGet, /* *< Waiting for message to arrive */
267
267
WaitingMessagePut, /* *< Waiting for message to be send */
268
- WaitingInterval, /* *< Waiting for an interval to occur */
269
- WaitingOr, /* *< Waiting for one event in a set to occur */
270
- WaitingAnd, /* *< Waiting for multiple events in a set to occur */
271
- WaitingMailbox, /* *< Waiting for a mailbox event to occur */
268
+ WaitingInterval, /* *< NOT USED */
269
+ WaitingOr, /* *< NOT USED */
270
+ WaitingAnd, /* *< NOT USED */
271
+ WaitingMailbox, /* *< NOT USED (Mail is implemented as MemoryPool and Queue) */
272
272
273
273
/* Not in sync with RTX below here */
274
- Deleted, /* *< The task has been deleted */
274
+ Deleted, /* *< The task has been deleted or not started */
275
275
};
276
276
277
277
/* * State of this Thread
0 commit comments