mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-27 06:16:04 +03:00
26 lines
588 B
C++
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
|