Lab4 RTOS
Fork of mbed-rtos by
Diff: rtos/Thread.cpp
- Revision:
- 76:85a52b7ef44b
- Parent:
- 59:28712e303960
- Child:
- 84:143955ffb790
--- a/rtos/Thread.cpp Mon Apr 27 09:45:31 2015 +0100 +++ b/rtos/Thread.cpp Tue May 05 08:00:49 2015 +0100 @@ -62,6 +62,10 @@ return osSignalSet(_tid, signals); } +int32_t Thread::signal_clr(int32_t signals) { + return osSignalClear(_tid, signals); +} + Thread::State Thread::get_state() { #ifndef __MBED_CMSIS_RTOS_CA9 return ((State)_thread_def.tcb.state);