thunderbrew/src/event/EvtThread.hpp
2023-01-02 13:17:18 -06:00

26 lines
588 B
C++

#ifndef EVENT_EVT_THREAD_HPP
#define EVENT_EVT_THREAD_HPP
#include "event/EvtContext.hpp"
#include <cstdint>
#include <storm/List.hpp>
#include <storm/Thread.hpp>
class EvtThread : public TSLinkedNode<EvtThread> {
public:
// Member variables
uint32_t m_threadSlot;
uint32_t m_threadCount;
uint32_t m_weightTotal;
uint32_t m_weightAvg;
uint32_t m_contextCount;
uint32_t m_rebalance;
SEvent m_wakeEvent = SEvent(0, 0);
EvtContextQueue m_contextQueue;
// Member functions
EvtThread();
};
#endif