Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MutliThread Server_Multi_Client HelloWorld C027_SupportTest ... more
Diff: Threads.cpp
- Revision:
- 1:ecdd97ea3d3b
- Parent:
- 0:266b0dc4f8d0
- Child:
- 2:46b56c9086f2
--- a/Threads.cpp	Sat Jun 29 21:13:52 2013 +0000
+++ b/Threads.cpp	Sat Jun 29 21:17:24 2013 +0000
@@ -16,6 +16,7 @@
 ********************************************************************************************************/
 #include "Threads.h"
 
+/*Initialize the first thread memory. Must be called before reAlloc is called*/
 int initThread(osThreadDef_t ***addresOfThreads,os_pthread pthread)
 {
     *addresOfThreads=(osThreadDef_t **)malloc(sizeof(osThreadDef_t *));
@@ -42,6 +43,7 @@
 
 }
 
+/*Allocate memory for the next thread*/
 int reAlloc(osThreadDef_t ***addresOfThreads,os_pthread pthread,int numberOfThreads)
 {
     osThreadDef_t **temp=NULL;