File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ int32_t Thread::signal_set(int32_t signals) {
62
62
return osSignalSet (_tid, signals);
63
63
}
64
64
65
+ int32_t Thread::signal_clr (int32_t signals) {
66
+ return osSignalClear (_tid, signals);
67
+ }
68
+
65
69
Thread::State Thread::get_state () {
66
70
#ifndef __MBED_CMSIS_RTOS_CA9
67
71
return ((State)_thread_def.tcb .state );
Original file line number Diff line number Diff line change @@ -64,6 +64,12 @@ class Thread {
64
64
*/
65
65
int32_t signal_set (int32_t signals);
66
66
67
+ /* * Clears the specified Signal Flags of an active thread.
68
+ @param signals specifies the signal flags of the thread that should be cleared.
69
+ @return resultant signal flags of the specified thread or 0x80000000 in case of incorrect parameters.
70
+ */
71
+ int32_t signal_clr (int32_t signals);
72
+
67
73
/* * State of the Thread */
68
74
enum State {
69
75
Inactive, /* *< Not created or terminated */
You can’t perform that action at this time.
0 commit comments