38 #ifndef HDMI_CCEC_OSAL_EVENTQUEUE_HPP_
39 #define HDMI_CCEC_OSAL_EVENTQUEUE_HPP_
48 CCEC_OSAL_BEGIN_NAMESPACE
76 events =
new std::deque<E>(0);
88 if (!events->empty()) {
89 printf(
"WARNING: There are [%d] elements left in queue\r\n", events->size());
114 if (!cond.isSet() || events->empty()) {
119 if (!events->empty()) {
120 front = events->front();
122 if (events->empty()) {
134 }
while (0 && front == NULL);
151 return events->size();
170 if (events->size() == cap) {
174 events->push_back(element);
181 std::deque<E> *events;
187 CCEC_OSAL_END_NAMESPACE