#include<stdio.h>
#include<pthread.h>
#define pbTaskName void*
typedef void* (*Fp)(void*);
void * MyPrintFunc(void * argv)
{
int i;
for(i=0 ; i<10 ; i++)
putchar('*');
putchar('\n');
}
void OSAL_CreateTask(void * myTaskName , Fp myTaskEntryPoint )
{
pthread_create((pthread_t *)myTaskName , NULL , myTaskEntryPoint , NULL);
}
int main()
{
pthread_t mypid;
OSAL_CreateTask(&mypid , MyPrintFunc );
return 0;
}