My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Attributes | List of all members
dedos_thread Struct Reference

Structure representing any thread within DeDOS. More...

#include <dedos_threads.h>

Public Attributes

pthread_t pthread
 The underlying pthread. More...
 
int id
 A unique identifier for the thread. More...
 
enum thread_mode mode
 [un]pinned More...
 
struct msg_queue queue
 Queue for incoming message. More...
 
sem_t sem
 Locks thread until a message is available. More...
 
pthread_mutex_t exit_lock
 For checking if thread should exit. More...
 
int exit_signal
 For checking if thread should exit. More...
 
struct timespec last_metric
 For logging thread metrics. More...
 

Detailed Description

Structure representing any thread within DeDOS.

Definition at line 35 of file dedos_threads.h.

Member Data Documentation

pthread_mutex_t dedos_thread::exit_lock

For checking if thread should exit.

Definition at line 47 of file dedos_threads.h.

int dedos_thread::exit_signal

For checking if thread should exit.

Definition at line 49 of file dedos_threads.h.

int dedos_thread::id

A unique identifier for the thread.

Definition at line 39 of file dedos_threads.h.

struct timespec dedos_thread::last_metric

For logging thread metrics.

Definition at line 51 of file dedos_threads.h.

enum thread_mode dedos_thread::mode

[un]pinned

Definition at line 41 of file dedos_threads.h.

pthread_t dedos_thread::pthread

The underlying pthread.

Definition at line 37 of file dedos_threads.h.

struct msg_queue dedos_thread::queue

Queue for incoming message.

Definition at line 43 of file dedos_threads.h.

sem_t dedos_thread::sem

Locks thread until a message is available.

Definition at line 45 of file dedos_threads.h.


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