mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
🎯 Sync smart & scheduler codes (#8537)
Signed-off-by: Shell <smokewood@qq.com> Co-authored-by: xqyjlj <xqyjlj@126.com>
This commit is contained in:
@@ -168,7 +168,6 @@ enum lwp_exit_request_type
|
||||
struct termios *get_old_termios(void);
|
||||
void lwp_setcwd(char *buf);
|
||||
char *lwp_getcwd(void);
|
||||
void lwp_request_thread_exit(rt_thread_t thread_to_exit);
|
||||
int lwp_check_exit_request(void);
|
||||
void lwp_terminate(struct rt_lwp *lwp);
|
||||
|
||||
@@ -213,52 +212,10 @@ pid_t exec(char *filename, int debug, int argc, char **argv);
|
||||
/* ctime lwp API */
|
||||
int timer_list_free(rt_list_t *timer_list);
|
||||
|
||||
struct rt_futex;
|
||||
rt_err_t lwp_futex(struct rt_lwp *lwp, struct rt_futex *futex, int *uaddr, int op, int val, const struct timespec *timeout);
|
||||
rt_err_t lwp_futex_init(void);
|
||||
rt_err_t lwp_futex(struct rt_lwp *lwp, int *uaddr, int op, int val,
|
||||
const struct timespec *timeout, int *uaddr2, int val3);
|
||||
|
||||
#ifdef ARCH_MM_MMU
|
||||
struct __pthread {
|
||||
/* Part 1 -- these fields may be external or
|
||||
* * internal (accessed via asm) ABI. Do not change. */
|
||||
struct pthread *self;
|
||||
uintptr_t *dtv;
|
||||
struct pthread *prev, *next; /* non-ABI */
|
||||
uintptr_t sysinfo;
|
||||
uintptr_t canary, canary2;
|
||||
|
||||
/* Part 2 -- implementation details, non-ABI. */
|
||||
int tid;
|
||||
int errno_val;
|
||||
volatile int detach_state;
|
||||
volatile int cancel;
|
||||
volatile unsigned char canceldisable, cancelasync;
|
||||
unsigned char tsd_used:1;
|
||||
unsigned char dlerror_flag:1;
|
||||
unsigned char *map_base;
|
||||
size_t map_size;
|
||||
void *stack;
|
||||
size_t stack_size;
|
||||
size_t guard_size;
|
||||
void *result;
|
||||
struct __ptcb *cancelbuf;
|
||||
void **tsd;
|
||||
struct {
|
||||
volatile void *volatile head;
|
||||
long off;
|
||||
volatile void *volatile pending;
|
||||
} robust_list;
|
||||
volatile int timer_id;
|
||||
locale_t locale;
|
||||
volatile int killlock[1];
|
||||
char *dlerror_buf;
|
||||
void *stdio_locks;
|
||||
|
||||
/* Part 3 -- the positions of these fields relative to
|
||||
* * the end of the structure is external and internal ABI. */
|
||||
uintptr_t canary_at_end;
|
||||
uintptr_t *dtv_copy;
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user