Skip to content

Commit 44bf6c3

Browse files
committed
pthread: change signalPost usages to sys_tkill
Adjust libphoenix to signalPost removal JIRA: RTOS-736
1 parent 7ce8fbf commit 44bf6c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/sys/threads.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ extern int resourceDestroy(handle_t h);
158158
extern int signalAction(int signal, const struct sigaction *act, struct sigaction *oact, void (*trampoline)(void));
159159

160160

161-
extern int signalPost(int pid, int tid, int signal);
161+
extern int sys_tkill(int pid, int tid, int signal);
162162

163163

164164
extern int signalReturn(int signal);

pthread/pthread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ int pthread_cancel(pthread_t thread)
455455
mutexUnlock(pthread_common.pthread_list_lock);
456456
pthread_key_cleanup(ctx);
457457
pthread_ctx_put(ctx);
458-
err = signalPost(getpid(), id, PH_SIGCANCEL);
458+
err = sys_tkill(getpid(), id, PH_SIGCANCEL);
459459
}
460460
else {
461461
_pthread_ctx_put(ctx);
@@ -1070,7 +1070,7 @@ int pthread_sigmask(int how, const sigset_t *__restrict__ set, sigset_t *__restr
10701070
int pthread_kill(pthread_t thread, int sig)
10711071
{
10721072
pthread_ctx *ctx = (pthread_ctx *)thread;
1073-
int ret = -signalPost(getpid(), ctx->id, sig);
1073+
int ret = -sys_tkill(getpid(), ctx->id, sig);
10741074
return ret;
10751075
}
10761076

0 commit comments

Comments
 (0)