pelican/server/src/ServiceDataBuffer.cpp
/**
 * @details
 * Deactivates the passed LockableServiceData object, and checks if it can
 * be expired.
 *
 * The data cannot be deleted as soon as there is no longer any stream data
 * referencing it, since a client may still ask for the data.
 *
 * If the passed data object is not the "current" service data (which is
 * associated with any incoming stream data), it is marked as available for
 * removal in the event of the buffer becoming full.
 *
 * @param[in] data Pointer to the LockableServiceData object to activate.
 */
@details
Deactivates the passed LockableServiceData object, and checks if it can
be expired.

The data cannot be deleted as soon as there is no longer any stream data
referencing it, since a client may still ask for the data.

If the passed data object is not the "current" service data (which is
associated with any incoming stream data), it is marked as available for
removal in the event of the buffer becoming full.

@param[in] data Pointer to the LockableServiceData object to activate.
@details Deactivates the passed LockableServiceData object and checks if it can be expired . The data cannot be deleted as soon as there is no longer any stream data referencing it since a client may still ask for the data . If the passed data object is not the " current " service data ( which is associated with any incoming stream data ) it is marked as available for removal in the event of the buffer becoming full . @param [ in ] data Pointer to the LockableServiceData object to activate .
void ServiceDataBuffer::deactivateData(LockableServiceData* data)
{
    if (data->id() != _current && ! _expiredData.contains(data)) {
        _expiredData.append(data);
    }
}
void ServiceDataBuffer :: deactivateData ( LockableServiceData * data ) { if ( data -> id ( ) != _current && ! _expiredData . contains ( data ) ) { _expiredData . append ( data ) ; } }
@details
 Deactivates the passed LockableServiceData object, and checks if it can
 be expired.
@details Deactivates the passed LockableServiceData object and checks if it can be expired .