mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 13:18:22 +00:00
spinlock: rename functions
This commit is contained in:
@@ -29,7 +29,7 @@ syscallret_t syscall_killthread(context_t *context, int pid, int tid, int signal
|
||||
}
|
||||
|
||||
bool ok = false;
|
||||
bool intstatus = spinlock_acquireirqclear(&target->threadlistlock);
|
||||
bool intstatus = spinlock_acquire_irq_clear(&target->threadlistlock);
|
||||
|
||||
thread_t *thread = target->threadlist;
|
||||
while (thread) {
|
||||
@@ -42,7 +42,7 @@ syscallret_t syscall_killthread(context_t *context, int pid, int tid, int signal
|
||||
thread = thread->procnext;
|
||||
}
|
||||
|
||||
spinlock_releaseirqrestore(&target->threadlistlock, intstatus);
|
||||
spinlock_release_irq_restore(&target->threadlistlock, intstatus);
|
||||
|
||||
if (ok == false) {
|
||||
ret.errno = ESRCH;
|
||||
|
||||
Reference in New Issue
Block a user