powerlink: build demo_mn_console and demo_cn_console

This commit is contained in:
Jiacheng Shi
2022-03-26 23:42:30 +08:00
parent b7648f0f08
commit 68179bec6c
21 changed files with 858 additions and 49 deletions

View File

@@ -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));

View File

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