CS318 - Pintos
Pintos source browser for JHU CS318 course
|
#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"
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 |
|
static |
Definition at line 46 of file priority-condvar.c.
References cond_wait(), lock_acquire(), lock_release(), msg(), and thread_name().
void test_priority_condvar | ( | void | ) |
Definition at line 17 of file priority-condvar.c.
References ASSERT, cond_init(), cond_signal(), lock_acquire(), lock_init(), lock_release(), msg(), name, NULL, PRI_DEFAULT, PRI_MIN, priority_condvar_thread, snprintf(), thread_create(), thread_mlfqs, and thread_set_priority().
Definition at line 14 of file priority-condvar.c.
Definition at line 13 of file priority-condvar.c.
Referenced by test_priority_fifo().
|
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().