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;
60 #endif // SST_CORE_SYNC_THREADSYNCQUEUE_H Base class for all Activities in the SST Event Queue.
Definition: activity.h:45
int size() override
Returns the number of activities in the queue.
Definition: threadSyncQueue.h:31
bool empty() override
Returns true if the queue is empty.
Definition: threadSyncQueue.h:28
Activity * pop() override
Not supported.
Definition: threadSyncQueue.h:34
void insert(Activity *activity) override
Insert a new activity into the queue.
Definition: threadSyncQueue.h:41
Base Class for a queue of Activities.
Definition: threadSyncQueue.h:21
Activity * front() override
Not supported.
Definition: threadSyncQueue.h:44
Base Class for a queue of Activities.
Definition: activityQueue.h:21