12 #ifndef SST_CORE_SYNC_THREADSYNCQUEUE_H
13 #define SST_CORE_SYNC_THREADSYNCQUEUE_H
15 #include "sst/core/activityQueue.h"
16 #include "sst/core/simulation.h"
29 bool empty()
override {
return activities.empty(); }
32 int size()
override {
return activities.size(); }
45 activities.push_back(activity);
55 void clear() { activities.clear(); }
57 std::vector<Activity*>& getVector() {
return activities; }
60 std::vector<Activity*> activities;
65 #endif // SST_CORE_SYNC_THREADSYNCQUEUE_H
Base class for all Activities in the SST Event Queue.
Definition: activity.h:46
int size() override
Returns the number of activities in the queue.
Definition: threadSyncQueue.h:32
bool empty() override
Returns true if the queue is empty.
Definition: threadSyncQueue.h:29
Activity * pop() override
Not supported.
Definition: threadSyncQueue.h:35
void insert(Activity *activity) override
Insert a new activity into the queue.
Definition: threadSyncQueue.h:42
Base Class for a queue of Activities.
Definition: threadSyncQueue.h:22
Activity * front() override
Not supported.
Definition: threadSyncQueue.h:49
Base Class for a queue of Activities.
Definition: activityQueue.h:21