12 #ifndef SST_CORE_SYNC_SYNCQUEUE_H 13 #define SST_CORE_SYNC_SYNCQUEUE_H 15 #include "sst/core/activityQueue.h" 16 #include "sst/core/rankInfo.h" 17 #include "sst/core/threadsafe.h" 63 bool empty()
override;
75 uint64_t getDataSize() {
return buf_size + (activities.capacity() *
sizeof(
Activity*)); }
80 std::vector<Activity*> activities;
92 bool empty()
override {
return activities.empty(); }
95 int size()
override {
return activities.size(); }
114 void clear() { activities.clear(); }
116 std::vector<Activity*>& getVector() {
return activities; }
119 std::vector<Activity*> activities;
124 #endif // SST_CORE_SYNC_SYNCQUEUE_H Activity * front() override
Returns the next activity.
Definition: syncQueue.cc:73
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: syncQueue.h:95
Activity * pop() override
Remove and return the next activity.
Definition: syncQueue.cc:61
bool empty() override
Returns true if the queue is empty.
Definition: syncQueue.h:92
RankInfo getToRank()
Accessor method to get to_rank.
Definition: syncQueue.h:37
Activity * pop() override
Not supported.
Definition: syncQueue.h:98
void insert(Activity *activity) override
Insert a new activity into the queue.
Definition: syncQueue.h:105
Definition: rankInfo.h:21
int size() override
Returns the number of activities in the queue.
Definition: syncQueue.cc:47
Definition: syncQueue.h:85
Definition: threadsafe.h:121
void clear()
Clear elements from the queue.
Definition: syncQueue.cc:80
bool empty() override
Returns true if the queue is empty.
Definition: syncQueue.cc:40
char * getData()
Accessor method to the internal queue.
Definition: syncQueue.cc:87
Internal API.
Definition: syncQueue.h:30
Definition: syncQueue.h:50
void insert(Activity *activity) override
Insert a new activity into the queue.
Definition: syncQueue.cc:54
Activity * front() override
Not supported.
Definition: syncQueue.h:108
Base Class for a queue of Activities.
Definition: activityQueue.h:21