Aguila
Fork of mbed-rtos by
Revision 76:85a52b7ef44b, committed 2015-05-05
- Comitter:
- mbed_official
- Date:
- Tue May 05 08:00:49 2015 +0100
- Parent:
- 75:557d5b275f31
- Child:
- 77:3516160e016b
- Commit message:
- Synchronized with git revision 16156f526db4b960762ba02dab48025d9d9a4531
Full URL: https://github.com/mbedmicro/mbed/commit/16156f526db4b960762ba02dab48025d9d9a4531/
Updated Thread.cpp|.h to support signal clear
Changed in this revision
| rtos/Thread.cpp | Show annotated file Show diff for this revision Revisions of this file |
| rtos/Thread.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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);
--- a/rtos/Thread.h Mon Apr 27 09:45:31 2015 +0100
+++ b/rtos/Thread.h Tue May 05 08:00:49 2015 +0100
@@ -64,6 +64,12 @@
*/
int32_t signal_set(int32_t signals);
+ /** Clears the specified Signal Flags of an active thread.
+ @param signals specifies the signal flags of the thread that should be cleared.
+ @return resultant signal flags of the specified thread or 0x80000000 in case of incorrect parameters.
+ */
+ int32_t signal_clr(int32_t signals);
+
/** State of the Thread */
enum State {
Inactive, /**< Not created or terminated */
