PKUOS - Pintos
Pintos source browser for PKU Operating System 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 | locks |
Low-priority main thread L acquires lock A. More... | |
Functions | |
void | test_priority_donate_nest (void) |
static void | medium_thread_func (void *locks_) |
static void | high_thread_func (void *lock_) |
Variables | |
static thread_func | medium_thread_func |
static thread_func | high_thread_func |
|
static |
Definition at line 86 of file priority-donate-nest.c.
References lock_acquire(), lock_release(), and msg().
|
static |
Definition at line 64 of file priority-donate-nest.c.
References locks::a, locks::b, lock_acquire(), lock_release(), msg(), PRI_DEFAULT, thread_get_priority(), and thread_yield().
void test_priority_donate_nest | ( | void | ) |
Definition at line 28 of file priority-donate-nest.c.
|
static |
Definition at line 25 of file priority-donate-nest.c.
|
static |
Definition at line 24 of file priority-donate-nest.c.