lib/metadata/chimeMetadata.h
/**
 * @brief Add RFI flagged samples to the metadata
 *
 * @param buf The buffer with the metadata
 * @param ID The frame in the buffer to add metadata too
 * @param num_flagged_samples The number of flagged samples to add
 */
@brief Add RFI flagged samples to the metadata
@param buf The buffer with the metadata
@param ID The frame in the buffer to add metadata too
@param num_flagged_samples The number of flagged samples to add
@brief Add RFI flagged samples to the metadata @param buf The buffer with the metadata @param ID The frame in the buffer to add metadata too @param num_flagged_samples The number of flagged samples to add
inline void atomic_add_rfi_flagged_samples(struct Buffer * buf, int ID,
                                           int64_t num_flagged_samples) {
    struct metadataContainer * mc = buf->metadata[ID];
    lock_metadata(mc);
    struct chimeMetadata * chime_metadata = (struct chimeMetadata *) mc->metadata;
    chime_metadata->rfi_flagged_samples += num_flagged_samples;
    unlock_metadata(mc);
}
inline void atomic_add_rfi_flagged_samples ( struct Buffer * buf , int ID , int64_t num_flagged_samples ) { struct metadataContainer * mc = buf -> metadata [ ID ] ; lock_metadata ( mc ) ; struct chimeMetadata * chime_metadata = ( struct chimeMetadata * ) mc -> metadata ; chime_metadata -> rfi_flagged_samples += num_flagged_samples ; unlock_metadata ( mc ) ; }
@brief Add RFI flagged samples to the metadata
 @param buf The buffer with the metadata
 @param ID The frame in the buffer to add metadata too
 @param num_flagged_samples The number of flagged samples to add
@brief Add RFI flagged samples to the metadata @param buf The buffer with the metadata @param ID The frame in the buffer to add metadata too @param num_flagged_samples The number of flagged samples to add