greenhouse
Public Member Functions
Tasks::Stats Class Reference

#include <stats_task.h>

Public Member Functions

 Stats ()
 
void setDisplay (UI::Display *display)
 
void start ()
 
void stop ()
 

Detailed Description

Definition at line 7 of file stats_task.h.

Constructor & Destructor Documentation

◆ Stats()

Tasks::Stats::Stats ( )

Member Function Documentation

◆ setDisplay()

void Stats::setDisplay ( UI::Display display)

Definition at line 17 of file stats_task.cpp.

17  {
18  _display = display;
19 }
UI::Display * display
Definition: main.cpp:19
UI::Display * _display
Definition: stats_task.cpp:12

References _display, and display.

Referenced by stats_task().

Here is the caller graph for this function:

◆ start()

void Stats::start ( )

Definition at line 27 of file stats_task.cpp.

27  {
28  if (_thread) {
29  // we're already running
30  return;
31  }
32 
34 
35  _thread = new Thread(osPriorityNormal, MAX_THREAD_STACK);
36 }
EventQueue * stats_queue
Definition: stats_task.cpp:13
Thread * _thread
Definition: stats_task.cpp:15
void collect_stats()
Definition: stats_task.cpp:21
#define MAX_THREAD_STACK
Definition: stats_task.cpp:10
#define SAMPLE_TIME_MS
Definition: stats_task.cpp:9
int _thread_id
Definition: stats_task.cpp:14

References _thread, _thread_id, collect_stats(), MAX_THREAD_STACK, SAMPLE_TIME_MS, and stats_queue.

Referenced by stats_task().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stop()

void Stats::stop ( )

Definition at line 38 of file stats_task.cpp.

38  {
39  if (_thread) {
40  _thread->terminate();
41  }
42 }

References _thread.


The documentation for this class was generated from the following files: