#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_pair |
Defines | |
#define | NESTING_DEPTH 8 |
Functions | |
void | test_priority_donate_chain (void) |
static void | donor_thread_func (void *locks_) |
static void | interloper_thread_func (void *arg_ UNUSED) |
Variables | |
static thread_func | donor_thread_func |
static thread_func | interloper_thread_func |
#define NESTING_DEPTH 8 |
static void donor_thread_func | ( | void * | locks_ | ) | [static] |
Definition at line 86 of file priority-donate-chain.c.
References lock_pair::first, lock_acquire(), lock_release(), msg(), NESTING_DEPTH, lock_pair::second, thread_get_priority(), and thread_name().
static void interloper_thread_func | ( | void *arg_ | UNUSED | ) | [static] |
void test_priority_donate_chain | ( | void | ) |
Definition at line 45 of file priority-donate-chain.c.
References ASSERT, donor_thread_func, lock_pair::first, interloper_thread_func, lock_acquire(), lock_init(), lock_release(), msg(), name, NULL, PRI_MIN, lock_pair::second, snprintf(), test_priority_donate_chain, thread_create(), thread_get_priority(), thread_mlfqs, thread_name(), and thread_set_priority().
thread_func donor_thread_func [static] |
thread_func interloper_thread_func [static] |