19 lines
414 B
C
19 lines
414 B
C
// Copyright (2019-2023) Paul Scherrer Institute
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef JUNGFRAUJOCH_ZEROCOPYRETURNVALUE_H
|
|
#define JUNGFRAUJOCH_ZEROCOPYRETURNVALUE_H
|
|
|
|
#include "ThreadSafeFIFO.h"
|
|
|
|
struct ZeroCopyReturnValue {
|
|
uint32_t handle;
|
|
ThreadSafeFIFO<uint32_t> *fifo;
|
|
|
|
void release() const {
|
|
fifo->PutBlocking(handle);
|
|
}
|
|
};
|
|
|
|
#endif //JUNGFRAUJOCH_ZEROCOPYRETURNVALUE_H
|