|
CS318 - Pintos
Pintos source browser for JHU CS318 course
|
#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 |
| Low priority thread L acquires a lock, then blocks downing a semaphore. More... | |
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 |
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 |
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 |
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(), thread_create(), thread_get_priority(), and thread_mlfqs.

|
static |
Definition at line 27 of file priority-donate-sema.c.
Referenced by test_priority_donate_sema().
|
static |
Definition at line 25 of file priority-donate-sema.c.
Referenced by test_priority_donate_sema().
|
static |
Definition at line 26 of file priority-donate-sema.c.
Referenced by test_priority_donate_sema().
1.8.16