PKUOS - Pintos
Pintos source browser for PKU Operating System 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.
Definition at line 14 of file priority-condvar.c.
Definition at line 13 of file priority-condvar.c.
|
static |
Tests that cond_signal() wakes up the highest-priority thread waiting in cond_wait().
Definition at line 12 of file priority-condvar.c.