This class implements the synchronization between the ReceiverModule class and the superior Receiver class.
More...
#include <OnlineReceiverNotification.h>
This class implements the synchronization between the ReceiverModule class and the superior Receiver class.
Definition at line 37 of file OnlineReceiverNotification.h.
risa::OnlineReceiverNotification::OnlineReceiverNotification |
( |
int |
size | ) |
|
|
inline |
std::size_t risa::OnlineReceiverNotification::fetch |
( |
| ) |
|
|
inline |
checks, if complete new sinogram is available
Therefore, this function finds the minimum element in and returns it. For the minimum element, it can be guaranteed, that the sinogram is complete
- Returns
- the index of the last complete sinogram available in the buffers
Definition at line 53 of file OnlineReceiverNotification.h.
void risa::OnlineReceiverNotification::notify |
( |
int |
receiverID, |
|
|
std::size_t |
index |
|
) |
| |
|
inline |
This function inserts the new sinogram index in indeces_ and notifies the Receiver about the arrival.
- Parameters
-
[in] | receiverID | the id of the ReceiverModule, that received the sinogram |
[in] | index | the index of the sinogram, that has just arrived |
Definition at line 71 of file OnlineReceiverNotification.h.
std::condition_variable risa::OnlineReceiverNotification::cv_ |
|
private |
std::vector<std::size_t> risa::OnlineReceiverNotification::indeces_ |
|
private |
std::size_t risa::OnlineReceiverNotification::lastIndex_ |
|
private |
std::mutex risa::OnlineReceiverNotification::mutex_ |
|
private |
int risa::OnlineReceiverNotification::size_ |
|
private |
The documentation for this class was generated from the following file: