Ignore:
Timestamp:
Sep 4, 2014 11:18:26 AM (7 years ago)
Author:
ldelgass
Message:

add token to map/screen coord commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/ResponseQueue.cpp

    r3998 r4629  
    2626}
    2727
    28 ResponseQueue::~ResponseQueue() 
     28ResponseQueue::~ResponseQueue()
    2929{
    3030    TRACE("Deleting ResponseQueue");
     
    4545    if (pthread_mutex_lock(&_idle) != 0) {
    4646        ERROR("can't lock mutex: %s", strerror(errno));
    47     }   
     47    }
     48#ifdef QUEUE_ONLY_ONE_FRAME
    4849    /* Examine the list and remove any queued responses of the same type. */
    4950    TRACE("Before # of elements is %d", _list.size());
    5051    for (std::list<Response *>::iterator itr = _list.begin();
    5152         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
    5455         * for different fields, this optimization should be disabled for legends.
    5556         * We may also need to differentiate between screen images and "hardcopy"
     
    6768        }
    6869    }
     70#endif
    6971    /* Add the new response to the end of the list. */
    7072    _list.push_back(response);
     
    7577    if (pthread_mutex_unlock(&_idle) != 0) {
    7678        ERROR("can't unlock mutex: %s", strerror(errno));
    77     }   
     79    }
    7880}
    7981
     
    105107    if (pthread_mutex_unlock(&_idle) != 0) {
    106108        ERROR("can't unlock mutex: %s", strerror(errno));
    107     }   
     109    }
    108110    return response;
    109111}
Note: See TracChangeset for help on using the changeset viewer.