12 #ifndef SST_CORE_SYNCQUEUE_H
13 #define SST_CORE_SYNCQUEUE_H
17 #include "sst/core/activityQueue.h"
18 #include "sst/core/threadsafe.h"
41 bool empty()
override;
53 uint64_t getDataSize() {
54 return buf_size + (activities.capacity() *
sizeof(
Activity*));
60 std::vector<Activity*> activities;
68 #endif // SST_CORE_SYNCQUEUE_H
Activity * front() override
Returns the next activity.
Definition: syncQueue.cc:69
Activity * pop() override
Remove and return the next activity.
Definition: syncQueue.cc:57
Base class for all Activities in the SST Event Queue.
Definition: activity.h:52
char * getData()
Accessor method to the internal queue.
Definition: syncQueue.cc:83
int size() override
Returns the number of activities in the queue.
Definition: syncQueue.cc:43
bool empty() override
Returns true if the queue is empty.
Definition: syncQueue.cc:36
void clear()
Clear elements from the queue.
Definition: syncQueue.cc:76
Definition: threadsafe.h:127
Internal API.
Definition: syncQueue.h:29
void insert(Activity *activity) override
Insert a new activity into the queue.
Definition: syncQueue.cc:50
Base Class for a queue of Activities.
Definition: activityQueue.h:22