#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.
Data Structures | |
| struct | sleep_test |
Functions | |
| static void | test_sleep (int thread_cnt, int iterations) |
| void | test_alarm_simultaneous (void) |
| static void | sleeper (void *) |
| static void sleeper | ( | void * | test_ | ) | [static] |
Definition at line 79 of file alarm-simultaneous.c.
References sleep_test::iterations, sleep_test::output_pos, sleep_test::start, thread_yield(), timer_sleep(), and timer_ticks().
Referenced by test_sleep().
| void test_alarm_simultaneous | ( | void | ) |
Definition at line 16 of file alarm-simultaneous.c.
References test_alarm_simultaneous, and test_sleep().
| static void test_sleep | ( | int | thread_cnt, | |
| int | iterations | |||
| ) | [static] |
Definition at line 33 of file alarm-simultaneous.c.
References ASSERT, free(), sleep_test::iterations, malloc(), msg(), name, NULL, sleep_test::output_pos, PANIC, PRI_DEFAULT, sleeper(), snprintf(), sleep_test::start, thread_create(), thread_mlfqs, timer_sleep(), and timer_ticks().
Referenced by test_alarm_multiple(), test_alarm_simultaneous(), and test_alarm_single().
1.5.6