Ivan Shindev / Threads

Dependents:   MutliThread Server_Multi_Client HelloWorld C027_SupportTest ... more

Threads.h

Committer:
lemniskata
Date:
2013-06-29
Revision:
2:46b56c9086f2
Parent:
0:266b0dc4f8d0
Child:
3:d370bed31f45

File content as of revision 2:46b56c9086f2:

/*
** 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"

typedef struct ThreadList
{
    osThreadDef_t *thread;
    osThreadId id;
    struct ThreadList* nextThread;
}ThreadList;

int initThread(ThreadList **addresOfTL,os_pthread pthread,ThreadList** addresOfThread);

#endif