pintos/src/tests/threads/priority-sema.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"

Go to the source code of this file.

Functions

void test_priority_sema (void)
static void priority_sema_thread (void *aux UNUSED)

Variables

static thread_func priority_sema_thread
static struct semaphore sema


Function Documentation

static void priority_sema_thread ( void *aux  UNUSED  )  [static]

Definition at line 41 of file priority-sema.c.

References msg(), sema, sema_down(), and thread_name().

void test_priority_sema ( void   ) 


Variable Documentation

thread_func priority_sema_thread [static]

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

Referenced by test_priority_sema().

struct semaphore sema [static]

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

Referenced by priority_sema_thread(), sema_test_helper(), and test_priority_sema().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6