Changes in kernel/generic/src/proc/thread.c [597fa24:df721df] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r597fa24 rdf721df 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda3 2 * Copyright (c) 2010 Jakub Jermar 3 * Copyright (c) 2018 Jiri Svoboda 4 4 * All rights reserved. 5 5 * … … 338 338 irq_spinlock_unlock(&thread->task->lock, false); 339 339 340 assert((atomic_get_unordered(&thread->state) == Entering) || 341 (atomic_get_unordered(&thread->state) == Exiting) || 342 (atomic_get_unordered(&thread->state) == Lingering)); 340 assert((atomic_get_unordered(&thread->state) == Exiting) || (atomic_get_unordered(&thread->state) == Lingering)); 343 341 344 342 /* Clear cpu->fpu_owner if set to this thread. */ … … 446 444 */ 447 445 ipc_cleanup(); 448 sys_waitq_task_cleanup();446 caps_task_clear(TASK); 449 447 LOG("Cleanup of task %" PRIu64 " completed.", TASK->taskid); 450 448 } … … 667 665 void thread_usleep(uint32_t usec) 668 666 { 669 WAITQ_INITIALIZE(wq); 667 waitq_t wq; 668 669 waitq_initialize(&wq); 670 670 671 (void) waitq_sleep_timeout(&wq, usec); 671 672 }
Note:
See TracChangeset
for help on using the changeset viewer.