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;
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:23
Activity * front() override
Not supported.
Definition: threadSyncQueue.h:49
void insert(Activity *activity) override
Insert a new activity into the queue.
Definition: threadSyncQueue.h:42
bool empty() override
Returns true if the queue is empty.
Definition: threadSyncQueue.h:29
Activity * pop() override
Not supported.
Definition: threadSyncQueue.h:35
int size() override
Returns the number of activities in the queue.
Definition: threadSyncQueue.h:32