pelican/server/src/ServiceDataBuffer.cpp
/**
 * @details
 * Returns the current version of the service data in the passed LockedData
 * object.
 *
 * @param[in,out] lockedData  A reference to the LockedData object to set.
 */
@details
Returns the current version of the service data in the passed LockedData
object.

@param[in,out] lockedData  A reference to the LockedData object to set.
@details Returns the current version of the service data in the passed LockedData object . @param [ in out ] lockedData A reference to the LockedData object to set .
void ServiceDataBuffer::getCurrent(LockedData& lockedData)
{
    QMutexLocker lock(&_mutex);
    lockedData.setData(_data.value(_current));
}
void ServiceDataBuffer :: getCurrent ( LockedData & lockedData ) { QMutexLocker lock ( & _mutex ) ; lockedData . setData ( _data . value ( _current ) ) ; }
@details
 Returns the current version of the service data in the passed LockedData
 object.
@details Returns the current version of the service data in the passed LockedData object .