#include <stdio.h>#include "tests/threads/tests.h"#include "threads/init.h"#include "threads/synch.h"#include "threads/thread.h"Go to the source code of this file.
Data Structures | |
| struct | lock_and_sema |
Functions | |
| void | test_priority_donate_sema (void) |
| static void | l_thread_func (void *ls_) |
| static void | m_thread_func (void *ls_) |
| static void | h_thread_func (void *ls_) |
Variables | |
| static thread_func | l_thread_func |
| static thread_func | m_thread_func |
| static thread_func | h_thread_func |
| static void h_thread_func | ( | void * | ls_ | ) | [static] |
Definition at line 72 of file priority-donate-sema.c.
References lock_and_sema::lock, lock_acquire(), lock_release(), msg(), lock_and_sema::sema, and sema_up().
| static void l_thread_func | ( | void * | ls_ | ) | [static] |
Definition at line 50 of file priority-donate-sema.c.
References lock_and_sema::lock, lock_acquire(), lock_release(), msg(), lock_and_sema::sema, and sema_down().
| static void m_thread_func | ( | void * | ls_ | ) | [static] |
Definition at line 63 of file priority-donate-sema.c.
References msg(), lock_and_sema::sema, and sema_down().
| void test_priority_donate_sema | ( | void | ) |
Definition at line 30 of file priority-donate-sema.c.
References ASSERT, h_thread_func, l_thread_func, lock_and_sema::lock, lock_init(), m_thread_func, msg(), PRI_DEFAULT, lock_and_sema::sema, sema_init(), sema_up(), test_priority_donate_sema, thread_create(), thread_get_priority(), and thread_mlfqs.
thread_func h_thread_func [static] |
thread_func l_thread_func [static] |
thread_func m_thread_func [static] |
1.5.6