CS318 - Pintos
Pintos source browser for JHU CS318 course
Data Fields
sleep_thread Struct Reference

Information about an individual thread in the test. More...

Collaboration diagram for sleep_thread:
Collaboration graph
[legend]

Data Fields

struct sleep_testtest
 Info shared between all threads. More...
 
int id
 Sleeper ID. More...
 
int duration
 Number of ticks to sleep. More...
 
int iterations
 Iterations counted so far. More...
 

Detailed Description

Information about an individual thread in the test.

Definition at line 39 of file alarm-wait.c.

Field Documentation

◆ duration

int sleep_thread::duration

Number of ticks to sleep.

Definition at line 43 of file alarm-wait.c.

Referenced by sleeper(), and test_sleep().

◆ id

int sleep_thread::id

Sleeper ID.

Definition at line 42 of file alarm-wait.c.

Referenced by sleeper(), and test_sleep().

◆ iterations

int sleep_thread::iterations

Iterations counted so far.

Definition at line 44 of file alarm-wait.c.

Referenced by test_sleep().

◆ test

struct sleep_test* sleep_thread::test

Info shared between all threads.

Definition at line 41 of file alarm-wait.c.

Referenced by sleeper(), and test_sleep().


The documentation for this struct was generated from the following file: