@@ -245,18 +245,12 @@ class Thread : private mbed::NonCopyable<Thread> {
245
245
*/
246
246
osPriority get_priority ();
247
247
248
- /* * Set the specified Signal Flags of an active thread.
248
+ /* * Set the specified Thread Flags for the thread.
249
249
@param signals specifies the signal flags of the thread that should be set.
250
250
@return previous signal flags of the specified thread or osFlagsError in case of incorrect parameters.
251
251
*/
252
252
int32_t signal_set (int32_t signals);
253
253
254
- /* * Clears the specified Signal Flags of an active thread.
255
- @param signals specifies the signal flags of the thread that should be cleared.
256
- @return resultant signal flags of the specified thread or osFlagsError in case of incorrect parameters.
257
- */
258
- int32_t signal_clr (int32_t signals);
259
-
260
254
/* * State of the Thread */
261
255
enum State {
262
256
Inactive, /* *< Not created */
@@ -310,10 +304,16 @@ class Thread : private mbed::NonCopyable<Thread> {
310
304
*/
311
305
const char *get_name ();
312
306
313
- /* * Wait for one or more Signal Flags to become signaled for the current RUNNING thread.
307
+ /* * Clears the specified Thread Flags of the currently running thread.
308
+ @param signals specifies the signal flags of the thread that should be cleared.
309
+ @return resultant signal flags of the specified thread or osFlagsError in case of incorrect parameters.
310
+ */
311
+ static int32_t signal_clr (int32_t signals);
312
+
313
+ /* * Wait for one or more Thread Flags to become signaled for the current RUNNING thread.
314
314
@param signals wait until all specified signal flags are set or 0 for any single signal flag.
315
315
@param millisec timeout value or 0 in case of no time-out. (default: osWaitForever).
316
- @return event flag information or error code.
316
+ @return event flag information or error code. @note if @a millisec is set to 0 and flag is no set the event carries osOK value.
317
317
@note not callable from interrupt
318
318
*/
319
319
static osEvent signal_wait (int32_t signals, uint32_t millisec=osWaitForever);
0 commit comments