mirror of
https://github.com/siemens-mobile-hacks/siemens-process-library.git
synced 2026-11-25 23:57:42 +00:00
32 lines
570 B
C
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
|