Basic example showing the Queue and MemoryPool API

Dependencies:   mbed-rtos mbed

mbed 2 and mbed OS 5

This is an mbed 2 example. mbed OS 5 has integrated the mbed library with mbed-rtos. For an mbed-os example, please see:

Import programrtos_queue

queue example

Files at this revision

API Documentation at this revision

Comitter:
emilmont
Date:
Fri Nov 23 10:41:31 2012 +0000
Parent:
2:60e763987e7b
Child:
4:c980920b5e22
Commit message:
rename function argument

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Nov 23 10:37:02 2012 +0000
+++ b/main.cpp	Fri Nov 23 10:41:31 2012 +0000
@@ -11,7 +11,7 @@
 Queue<message_t, 16> queue;
 
 /* Send Thread */
-void send_thread (void const *argument) {
+void send_thread (void const *args) {
     uint32_t i = 0;
     while (true) {
         i++; // fake data update