src/kernel/task/threads.c
// not safe
// thread can`t be NULL
not safe
thread can`t be NULL
not safe thread can ` t be NULL
thread_status_t threads_get_status(thread_t * thread){
    thread_status_t ret;
    base_t level = intrLock_lock(&thread->lock);
    ret = thread->status;
    intrLock_unlock(&thread->lock,level);
    return ret;
}
thread_status_t threads_get_status ( thread_t * thread ) { thread_status_t ret ; base_t level = intrLock_lock ( & thread -> lock ) ; ret = thread -> status ; intrLock_unlock ( & thread -> lock , level ) ; return ret ; }
not safe
thread can`t be NULL
not safe thread can ` t be NULL