mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 03:32:28 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
25
src/event/EvtThread.hpp
Normal file
25
src/event/EvtThread.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue