12#ifndef SST_CORE_SYNC_THREADSYNCDIRECTSKIP_H
13#define SST_CORE_SYNC_THREADSYNCDIRECTSKIP_H
15#include "sst/core/action.h"
16#include "sst/core/simulation.h"
17#include "sst/core/sst_types.h"
18#include "sst/core/sync/syncManager.h"
19#include "sst/core/sync/syncQueue.h"
24#include <unordered_map>
46 void before()
override {}
47 void after()
override;
48 void execute()
override;
54 void prepareForComplete()
override {}
57 void setSignals(
int end,
int usr,
int alrm)
override;
59 bool getSignals(
int& end,
int& usr,
int& alrm)
override;
62 void setShutdownFlags(
bool enter_shutdown, Simulation::ShutdownMode_t shutdown_mode)
override;
63 void setFlags(
bool enter_interactive,
bool enter_shutdown, Simulation::ShutdownMode_t shutdown_mode)
override;
65 void getShutdownFlags(
bool& enter_shutdown, Simulation::ShutdownMode_t& shutdown_mode)
override;
66 void getFlags(
bool& enter_interactive,
bool& enter_shutdown, Simulation::ShutdownMode_t& shutdown_mode)
override;
70 SimTime_t getNextSyncTime()
override {
return nextSyncTime - 1; }
74 ActivityQueue* registerRemoteLink(
int UNUSED(
id),
Link* UNUSED(link))
override {
return nullptr; }
76 uint64_t getDataSize()
const;
79 SimTime_t my_max_period;
82 static SimTime_t localMinimumNextActivityTime;
84 static Core::ThreadSafe::Barrier barrier[3];
90 static std::atomic<bool> enter_interactive_;
91 static std::atomic<bool> enter_shutdown_;
92 static std::atomic<unsigned> shutdown_mode_;
Base Class for a queue of Activities.
Definition activityQueue.h:22
Base class for Events - Items sent across links to communicate between components.
Definition event.h:41
Exit Action.
Definition exit.h:35
Link between two components.
Definition link.h:57
Main control class for a SST Simulation.
Definition simulation.h:121
void getShutdownFlags(bool &enter_shutdown, Simulation::ShutdownMode_t &shutdown_mode) override
Return exchanged interactive flags after sync.
Definition threadSyncDirectSkip.cc:124
void setShutdownFlags(bool enter_shutdown, Simulation::ShutdownMode_t shutdown_mode) override
Set interactive flags to exchange during sync.
Definition threadSyncDirectSkip.cc:107
void finalizeLinkConfigurations() override
Finish link configuration.
Definition threadSyncDirectSkip.h:53
void clearFlags() override
Clear interactive flags before next run.
Definition threadSyncDirectSkip.cc:148
void registerLink(Link *UNUSED(link)) override
Register a Link which this Sync Object is responsible for.
Definition threadSyncDirectSkip.h:73
bool getSignals(int &end, int &usr, int &alrm) override
Return exchanged signals after sync.
Definition threadSyncDirectSkip.cc:98
void processLinkUntimedData() override
Cause an exchange of Untimed Data to occur.
Definition threadSyncDirectSkip.h:51
ThreadSyncDirectSkip(int num_threads, int thread, Simulation *sim)
Create a new ThreadSync object.
Definition threadSyncDirectSkip.cc:30
void setSignals(int end, int usr, int alrm) override
Set signals to exchange during sync.
Definition threadSyncDirectSkip.cc:90
Definition syncQueue.h:100
A class to convert between a component's view of time and the core's view of time.
Definition timeConverter.h:31