siemens-process-library/include/spl/thread.h
zvova7890@gmail.com 04496a98d3 + Хидеры
2012-09-29 10:44:18 +00:00

32 lines
570 B
C

#ifndef __THREAD_H__
#define __THREAD_H__
#include "task.h"
#ifdef __cplusplus
extern "C" {
#endif
int createConfigurableThread(TaskConf *conf, int (*handle)(void *), void *data, int run);
int createThread(int prio, int (*handle)(void *), void *data, int run);
int suspendThread(int tid);
int resumeThread(int tid);
int destroyThread(int tid);
int tidByTask(MMU_TASK *task);
int gettid();
int getptid();
int waitForThreadStarted(int _tid);
int waitForThreadFinished(int _tid, int *retcode);
#ifdef __cplusplus
}
#endif
#endif