Changeset 4629 for geovis/trunk/ResponseQueue.cpp
- Timestamp:
- Sep 4, 2014, 11:18:26 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/ResponseQueue.cpp
r3998 r4629 26 26 } 27 27 28 ResponseQueue::~ResponseQueue() 28 ResponseQueue::~ResponseQueue() 29 29 { 30 30 TRACE("Deleting ResponseQueue"); … … 45 45 if (pthread_mutex_lock(&_idle) != 0) { 46 46 ERROR("can't lock mutex: %s", strerror(errno)); 47 } 47 } 48 #ifdef QUEUE_ONLY_ONE_FRAME 48 49 /* Examine the list and remove any queued responses of the same type. */ 49 50 TRACE("Before # of elements is %d", _list.size()); 50 51 for (std::list<Response *>::iterator itr = _list.begin(); 51 52 itr != _list.end();) { 52 /* Remove any duplicate image or legend responses. There should be no 53 * more than one. Note that if the client starts using multiple legends 53 /* Remove any duplicate image or legend responses. There should be no 54 * more than one. Note that if the client starts using multiple legends 54 55 * for different fields, this optimization should be disabled for legends. 55 56 * We may also need to differentiate between screen images and "hardcopy" … … 67 68 } 68 69 } 70 #endif 69 71 /* Add the new response to the end of the list. */ 70 72 _list.push_back(response); … … 75 77 if (pthread_mutex_unlock(&_idle) != 0) { 76 78 ERROR("can't unlock mutex: %s", strerror(errno)); 77 } 79 } 78 80 } 79 81 … … 105 107 if (pthread_mutex_unlock(&_idle) != 0) { 106 108 ERROR("can't unlock mutex: %s", strerror(errno)); 107 } 109 } 108 110 return response; 109 111 }
Note: See TracChangeset
for help on using the changeset viewer.