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

Go to the source code of this file.

Functions

void test_priority_condvar (void)
 
static void priority_condvar_thread (void *aux UNUSED)
 

Variables

static thread_func priority_condvar_thread
 Tests that cond_signal() wakes up the highest-priority thread waiting in cond_wait(). More...
 
static struct lock lock
 
static struct condition condition
 

Function Documentation

◆ priority_condvar_thread()

static void priority_condvar_thread ( void *aux  UNUSED)
static

Definition at line 46 of file priority-condvar.c.

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

Here is the call graph for this function:

◆ test_priority_condvar()

void test_priority_condvar ( void  )

Variable Documentation

◆ condition

struct condition condition
static

Definition at line 14 of file priority-condvar.c.

◆ lock

struct lock lock
static

Definition at line 13 of file priority-condvar.c.

Referenced by test_priority_fifo().

◆ priority_condvar_thread

thread_func priority_condvar_thread
static

Tests that cond_signal() wakes up the highest-priority thread waiting in cond_wait().

Definition at line 12 of file priority-condvar.c.

Referenced by test_priority_condvar().