12 #ifndef SST_CORE_SYNC_THREADSYNCQUEUE_H
13 #define SST_CORE_SYNC_THREADSYNCQUEUE_H
15 #include "sst/core/activityQueue.h"
28 bool empty()
override {
return activities.empty(); }
31 int size()
override {
return activities.size(); }
50 void clear() { activities.clear(); }
52 std::vector<Activity*>& getVector() {
return activities; }
55 std::vector<Activity*> activities;
Base Class for a queue of Activities.
Definition: activityQueue.h:22
Base class for all Activities in the SST Event Queue.
Definition: activity.h:46
Base Class for a queue of Activities.
Definition: threadSyncQueue.h:22
void insert(Activity *activity) override
Insert a new activity into the queue.
Definition: threadSyncQueue.h:41
Activity * pop() override
Not supported.
Definition: threadSyncQueue.h:34
bool empty() override
Returns true if the queue is empty.
Definition: threadSyncQueue.h:28
Activity * front() override
Not supported.
Definition: threadSyncQueue.h:44
int size() override
Returns the number of activities in the queue.
Definition: threadSyncQueue.h:31