5 #if !defined(_KKU_MSGQUEUE_) 41 void AddMsg (KKStrPtr msg);
56 void AddMsgs (
const KKStrListPtr msgs,
81 GoalKeeperSimplePtr gateKeeper;
84 std::queue<KKStrPtr> queue;
void AddMsg(KKStrPtr msg)
Take ownership of 'msg' and add to end of the queue.
kkint32 MemoryConsumedEstimated()
Returns an estimate of the amount of memory consumed in bytes by this instance.
void AddMsg(const KKStr &msg)
void AddMsgs(const KKStrListPtr msgs, bool takeOwnership)
Adds the contents of 'msgs' to the message queue and depending on 'takeOwnership' will either assume ...
KKStrPtr GetNextMsg()
Removes from the queue the oldest message added to the queue that has not been removed.
KKStrListPtr GetAllMsgs()
Returns all messages that are currently in the queue.
Will manage a buffer that will allow multiple threads to add and remove messages to a queue...
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
MsgQueue(const KKStr &_name)
KKStrPtr GetCopyOfLastMsg()
Returns a duplicate of the last string added to the message queue.