9 #ifndef __OutputFileShare_h
10 #define __OutputFileShare_h
14 #include "dsp/HasInput.h"
15 #include "dsp/Operation.h"
16 #include "dsp/BitSeries.h"
17 #include "dsp/OutputFile.h"
98 class OutputFileShare::Submit : public OutputFile
109 std::string get_extension () const
115 void write_header () { parent-> output_file->write_header(); }
120 unsigned contributor;
126 #endif // !defined(__OutputFileShare_h)
MJD get_next_time() const Return next time. Definition: OutputFileShare.h:62
void set_next_time(MJD time) set next time Definition: OutputFileShare.h:65
OutputFile * get_output_file() const Get the output file. Definition: OutputFileShare.h:44
Contains all Baseband Data Reduction Library classes. Definition: ASCIIObservation.h:17
Reference::To< OutputFile > output_file The actual output file unloader. Definition: OutputFileShare.h:79
void set_output_file(OutputFile *f) Set the output file. Definition: OutputFileShare.h:47
Share one OutputFile among multiple processing threads. Definition: OutputFileShare.h:35
MJD next_time Leading edge time of next output sample. Definition: OutputFileShare.h:85
ThreadContext * context Coordinate various threads. Definition: OutputFileShare.h:82
Pure virtual base class of all objects that can unload BitSeries data. Definition: OutputFile.h:30
std::vector< MJD > start_times Current start times of waiting contributors. Definition: OutputFileShare.h:88
static bool verbose Global verbosity flag. Definition: Operation.h:48
unsigned nready Number of threads currently ready to write data. Definition: OutputFileShare.h:94
Submit * new_Submit(unsigned contributor) Return Submit interface for given contributor. Definition: OutputFileShare.C:49
ThreadContext * get_context() const Set the thread context. Definition: OutputFileShare.h:53
OutputFileShare(unsigned contributors) Constructor. Definition: OutputFileShare.C:31
bool first first-time-through flag Definition: OutputFileShare.h:91
void set_context(ThreadContext *t) Set the thread context. Definition: OutputFileShare.h:50
void signal_done(unsigned contributor) Call when a contributor is done. Definition: OutputFileShare.C:98
void signal_ready(unsigned contributor, MJD start_time) Call when a contributor is ready to write. Definition: OutputFileShare.C:56
virtual ~OutputFileShare() Destructor. Definition: OutputFileShare.C:44
unsigned contributors Number of contributors. Definition: OutputFileShare.h:76
Generated using doxygen 1.8.17
|