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
Threads.h
- Committer:
- lemniskata
- Date:
- 2013-06-29
- Revision:
- 0:266b0dc4f8d0
- Child:
- 2:46b56c9086f2
File content as of revision 0:266b0dc4f8d0:
/* ** 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