CS318 - Pintos
Pintos source browser for JHU CS318 course
Data Structures | Functions | Variables
priority-donate-nest.c File Reference
#include <stdio.h>
#include "tests/threads/tests.h"
#include "threads/init.h"
#include "threads/synch.h"
#include "threads/thread.h"
Include dependency graph for priority-donate-nest.c:

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
 

Function Documentation

◆ high_thread_func()

static void high_thread_func ( void *  lock_)
static

Definition at line 86 of file priority-donate-nest.c.

References lock_acquire(), lock_release(), and msg().

Here is the call graph for this function:

◆ medium_thread_func()

static void medium_thread_func ( void *  locks_)
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().

Here is the call graph for this function:

◆ test_priority_donate_nest()

void test_priority_donate_nest ( void  )

Variable Documentation

◆ high_thread_func

thread_func high_thread_func
static

Definition at line 25 of file priority-donate-nest.c.

Referenced by test_priority_donate_nest().

◆ medium_thread_func

thread_func medium_thread_func
static

Definition at line 24 of file priority-donate-nest.c.

Referenced by test_priority_donate_nest().