Running multiple thread instances of the same function. (See MultiThread Program for an example on how to use it)

Dependents:   MutliThread Server_Multi_Client HelloWorld C027_SupportTest ... more

Revision:
0:266b0dc4f8d0
Child:
2:46b56c9086f2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Threads.h	Sat Jun 29 21:13:52 2013 +0000
@@ -0,0 +1,25 @@
+/*
+** File name:            Thread.cpp
+** Descriptions:        Creates multiple thread instances of the same function
+**
+**------------------------------------------------------------------------------------------------------
+** Created by:            Ivan Shindev
+** Created date:        06/29/2013
+** Version:                1.0
+** Descriptions:        The original version
+**
+**------------------------------------------------------------------------------------------------------
+** Modified by:            
+** Modified date:    
+** Version:
+** Descriptions:        
+*/
+#ifndef __Threads_H 
+#define __Threads_H
+
+#include "mbed.h"
+#include "cmsis_os.h"
+
+int initThread(osThreadDef_t ***addresOfThreads,os_pthread pthread);
+int reAlloc(osThreadDef_t ***addresOfThreads,os_pthread pthread,int numberOfThreads);
+#endif