Changeset 5915 for geovis/trunk/ResponseQueue.cpp
- Timestamp:
- Oct 21, 2015, 3:49:03 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/ResponseQueue.cpp
r4629 r5915 48 48 #ifdef QUEUE_ONLY_ONE_FRAME 49 49 /* Examine the list and remove any queued responses of the same type. */ 50 #ifdef TRACE_RESPONSE_QUEUE 50 51 TRACE("Before # of elements is %d", _list.size()); 52 #endif 51 53 for (std::list<Response *>::iterator itr = _list.begin(); 52 54 itr != _list.end();) { … … 71 73 /* Add the new response to the end of the list. */ 72 74 _list.push_back(response); 75 #ifdef TRACE_RESPONSE_QUEUE 73 76 TRACE("After # of elements is %d", _list.size()); 77 #endif 74 78 if (sem_post(&_ready) < 0) { 75 79 ERROR("can't post semaphore: %s", strerror(errno)); … … 103 107 response = _list.front(); 104 108 _list.pop_front(); 109 #ifdef TRACE_RESPONSE_QUEUE 105 110 TRACE("Dequeued response of type %d", response->type()); 111 #endif 106 112 } 107 113 if (pthread_mutex_unlock(&_idle) != 0) {
Note: See TracChangeset
for help on using the changeset viewer.