12#ifndef SST_CORE_SYNC_THREADSYNCSIMPLESKIP_H
13#define SST_CORE_SYNC_THREADSYNCSIMPLESKIP_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"
20#include "sst/core/threadsafe.h"
25#include <unordered_map>
48 void before()
override;
49 void after()
override;
50 void execute()
override;
53 void setSignals(
int end,
int usr,
int alrm)
override;
55 bool getSignals(
int& end,
int& usr,
int& alrm)
override;
59 void setShutdownFlags(
bool enter_shutdown, Simulation::ShutdownMode_t shutdown_mode)
override;
60 void setFlags(
bool enter_interactive,
bool enter_shutdown, Simulation::ShutdownMode_t shutdown_mode)
override;
62 void getShutdownFlags(
bool& enter_shutdown, Simulation::ShutdownMode_t& shutdown_mode)
override;
63 void getFlags(
bool& enter_interactive,
bool& enter_shutdown, Simulation::ShutdownMode_t& shutdown_mode)
override;
71 void prepareForComplete()
override;
77 uint64_t getDataSize()
const;
79 SimTime_t findSyncInterval()
override;
89 std::unordered_map<LinkId_t, Link*> link_map;
93 std::vector<Link*> link_vec;
95 std::vector<ThreadSyncQueue*> queues;
98 static SimTime_t localMinimumNextActivityTime;
101 double totalWaitTime;
106 static int sig_alrm_;
107 static std::atomic<bool> enter_interactive_;
108 static std::atomic<bool> enter_shutdown_;
109 static std::atomic<unsigned> shutdown_mode_;
Base Class for a queue of Activities.
Definition activityQueue.h:22
Definition threadsafe.h:50
Definition threadsafe.h:138
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
Definition syncQueue.h:100
ThreadSyncSimpleSkip(int num_threads, int thread, Simulation *sim)
Create a new ThreadSync object.
Definition threadSyncSimpleSkip.cc:31
void registerLink(Link *link) override
Register a Link which this Sync Object is responsible for.
Definition threadSyncSimpleSkip.cc:70
void processLinkUntimedData() override
Cause an exchange of Untimed Data to occur.
Definition threadSyncSimpleSkip.cc:148
void setShutdownFlags(bool enter_shutdown, Simulation::ShutdownMode_t shutdown_mode) override
Set interactive flags to exchange during sync.
Definition threadSyncSimpleSkip.cc:224
void setSignals(int end, int usr, int alrm) override
Set signals to exchange during sync.
Definition threadSyncSimpleSkip.cc:207
bool getSignals(int &end, int &usr, int &alrm) override
Return exchanged signals after sync.
Definition threadSyncSimpleSkip.cc:215
void finalizeLinkConfigurations() override
Finish link configuration.
Definition threadSyncSimpleSkip.cc:164
void clearFlags() override
Clear interactive flags before next run.
Definition threadSyncSimpleSkip.cc:267
void getShutdownFlags(bool &enter_shutdown, Simulation::ShutdownMode_t &shutdown_mode) override
Return exchanged interactive flags after sync.
Definition threadSyncSimpleSkip.cc:242
A class to convert between a component's view of time and the core's view of time.
Definition timeConverter.h:31