forked from xuos/xiuos
powerlink: build demo_mn_console and demo_cn_console
This commit is contained in:
@@ -67,6 +67,7 @@ typedef int pid_t;
|
||||
#define SCHED_OTHER 0
|
||||
#define SCHED_FIFO 1
|
||||
#define SCHED_RR 2
|
||||
#define SCHED_IDLE 5
|
||||
|
||||
/* function in pthread.c */
|
||||
int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void));
|
||||
|
||||
@@ -67,6 +67,12 @@ pthread_t pthread_self(void){
|
||||
return pthread;
|
||||
}
|
||||
|
||||
int pthread_setschedparam(pthread_t thread, int policy,
|
||||
const struct sched_param *pParam)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int pthread_setschedprio(pthread_t thread, int prio)
|
||||
{
|
||||
//add syscall
|
||||
@@ -98,6 +104,11 @@ int pthread_setcanceltype(int type, int *oldtype)
|
||||
return -1;
|
||||
}
|
||||
|
||||
int pthread_join(pthread_t thread, void **retval)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
int pthread_kill(pthread_t thread, int sig)
|
||||
{
|
||||
/* This api should not be used, and will not be supported */
|
||||
|
||||
Reference in New Issue
Block a user