Ivan Shindev / Threads

Dependents:   MutliThread Server_Multi_Client HelloWorld C027_SupportTest ... more

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;