Task class is an implementation of mail driven thread, for it makes to use Thread and Mail classes in mbed-rtos library easier.

Dependents:   mail_driven_task_example

It makes simple to implement asynchronous processing between threads. Task class is an implementation of mail driven thread, for it makes to use Thread and Mail classes in mbed-rtos library easier.

The example of the use of this library, please refer to the following program.

Import programmail_driven_task_example

Simple example of the use of mail_driven_task library

Revision:
2:b12e4c1338db
Parent:
1:381a6f6263c7
Child:
3:0c93bdf73d87
--- a/Task.cpp	Thu Dec 25 01:58:14 2014 +0000
+++ b/Task.cpp	Thu Dec 25 02:32:12 2014 +0000
@@ -64,7 +64,7 @@
 
     float t = (float)clock.read_ms() / 1000;
     logger->sp->printf("%.3f:[%s][%s] ",
-        t, Logger::lvSym[lv], logger->tag);
+                       t, Logger::lvSym[lv], logger->tag);
 
     va_list arg;
     va_start(arg, format);