Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/thread.c

    raae365bc raab5e46  
    4848#include <synch/spinlock.h>
    4949#include <synch/waitq.h>
     50#include <synch/workqueue.h>
     51#include <synch/rcu.h>
    5052#include <cpu.h>
    5153#include <str.h>
     
    6769#include <syscall/copy.h>
    6870#include <errno.h>
    69 #include <debug.h>
    7071
    7172/** Thread states */
     
    271272{
    272273        assert(irq_spinlock_locked(&thread->lock));
     274        workq_before_thread_is_ready(thread);
    273275}
    274276
     
    397399        thread->task = task;
    398400
     401        thread->workq = NULL;
     402
    399403        thread->fpu_context_exists = false;
    400404        thread->fpu_context_engaged = false;
     
    410414        /* Might depend on previous initialization */
    411415        thread_create_arch(thread);
     416
     417        rcu_thread_init(thread);
    412418
    413419        if ((flags & THREAD_FLAG_NOATTACH) != THREAD_FLAG_NOATTACH)
Note: See TracChangeset for help on using the changeset viewer.