12 #ifndef SST_CORE_SYNCQUEUE_H
13 #define SST_CORE_SYNCQUEUE_H
19 #include <sst/core/activityQueue.h>
20 #include <sst/core/threadsafe.h>
55 uint64_t getDataSize() {
56 return buf_size + (activities.capacity() *
sizeof(
Activity*));
62 std::vector<Activity*> activities;
70 #endif // SST_CORE_SYNCQUEUE_H
Activity * front()
Returns the next activity.
Definition: syncQueue.cc:70
Activity * pop()
Remove and return the next activity.
Definition: syncQueue.cc:58
Base class for all Activities in the SST Event Queue.
Definition: activity.h:53
void insert(Activity *activity)
Insert a new activity into the queue.
Definition: syncQueue.cc:51
char * getData()
Accessor method to the internal queue.
Definition: syncQueue.cc:84
bool empty()
Returns true if the queue is empty.
Definition: syncQueue.cc:37
void clear()
Clear elements from the queue.
Definition: syncQueue.cc:77
Definition: threadsafe.h:101
Internal API.
Definition: syncQueue.h:31
int size()
Returns the number of activities in the queue.
Definition: syncQueue.cc:44
Base Class for a queue of Activities.
Definition: activityQueue.h:22