1 #ifndef FWCore_Integration_WaitingServer_h 2 #define FWCore_Integration_WaitingServer_h 7 #include <condition_variable> 14 namespace test_acquire {
19 std::vector<int>
const*
in_;
27 unsigned int iMinNumberOfStreamsBeforeDoingWork,
28 unsigned int iSecondsToWait)
38 std::vector<int>
const* iIn,
39 std::vector<int>* iOut,
std::atomic< bool > m_shouldStop
std::vector< StreamData > m_perStream
const unsigned int m_minNumStreamsBeforeDoingWork
std::condition_variable m_cond
std::vector< int > const * in_
std::vector< int > * out_
std::vector< int > m_retrieved
edm::WaitingTaskWithArenaHolder holder_
const unsigned int m_secondsToWait
std::vector< int > & retrieved()
std::vector< int > & processed()
std::unique_ptr< std::thread > m_thread
std::vector< int > m_processed
std::vector< int > const & processed() const
WaitingServer(unsigned int iNumberOfStreams, unsigned int iMinNumberOfStreamsBeforeDoingWork, unsigned int iSecondsToWait)
std::vector< unsigned int > m_waitingStreams
bool readyForWork() const
std::vector< int > const & retrieved() const
void requestValuesAsync(unsigned int dataID, std::vector< int > const *iIn, std::vector< int > *iOut, edm::WaitingTaskWithArenaHolder holder)