Ask a Question | Search DSPSR: |
Home
|
Simultaneous.h static void * op_loop(Simultaneous *thiz) This function runs in the extra thread. virtual void open(const std::string &id) Prepare the appropriate Input and Unpacker. Definition: IOManager.C:38 void initialise_op_input() Initialises the 'op_input' variable. void wait_to_synch() Makes the thread wait for the call to operate() before running. bool use_threads Whether to use threads [true]. Definition: Simultaneous.h:206 Produces TimeSeries data by integrating an Input with an Unpacker. Definition: IOManager.h:26 bool newify_input_buffers() Tries to work out what sort of buffers the input_buffers should be. bool has_op() Inquire whether an Operation is being stored. Definition: Simultaneous.h:51 Reference::To< BasicBuffer > new_buffer(string typestring) Returns a new Buffer of the requisite type. void run_op() Calls op->operate() after setting up the input/output buffers. bool new_data() Puts the new input data into the input ringbuffer and puts the output data processed in the extra thr... static bool verbose void set(Pulsar::Archive *archive, const PhaseSeries *phase) Set the Pulsar::Archive with the PhaseSeries data. Definition: Archiver.C:477 Reference::To< Operation > op The class being run simultaneously. Definition: Simultaneous.h:161 void initialise_op_output() Initialises the 'op_output' variable. bool thread_running True if the thread has been started up. Definition: Simultaneous.h:164 virtual void load(TimeSeries *data) Load and convert the next block of data. Definition: UnpackerSource.h:254 static void set_verbosity(unsigned level) Operation(const char *name) All sub-classes must specify a unique name. Definition: Operation.C:46 static bool record_time Global flag enables stopwatch to record the time spent operating. Definition: Operation.h:42 Reference::To< BasicBuffer > pop_free_input_buffer() pops a free/full input/output buffer as soon as one is available std::queue< Reference::To< BasicBuffer > > free_input_buffers Ordered list of who is to be used next. Definition: Simultaneous.h:171 Defines the interface by which operations are performed on data. Definition: Operation.h:37 Container of weighted time-major order floating point data. Definition: WeightedTimeSeries.h:26 T * get() Convenience method to return the Operation. Definition: Simultaneous.h:212 virtual void set_source(const std::string &name) Set the source name. Definition: Observation.h:120 bool newify_those_buffers(string typestring, vector< Reference::To< BasicBuffer > > &buffers) Worker function for newify_input_buffers() and newify_output_buffers() void wait_for_free_input_buffer() Waits around until a free/full input/output buffer is available. string get_input_typestring() Returns a string describing the input type. bool copy_input_into_ringbuffer() Copies the new input data into the input ringbuffer if necessary. bool copy_ringbuffer_into_output() Puts the output data processed in the extra thread into the output so that it's ready to be processed... bool get_detected() const Returns true if state is Detected, Coherence, or Stokes. Definition: Observation.C:144 Coherence Reference::To< BasicBuffer > setup_op_output() Gives the Operation an output if it needs one. bool verbose bool op_uses_an_input() Returns true if the Operation needs an input to be set. float wait_time Time-out time on call to pthread_cond_wait (in seconds) [1.0]. Definition: Simultaneous.h:203 bool keep_running Whether the user wants to finish up or keep running [true]. Definition: Simultaneous.h:212 Reference::To< BasicBuffer > op_input Has the actual Buffers that the Operation was originally set up with. Definition: Simultaneous.h:177 pthread_mutex_t free_input_buffers_mutex Mutexes and conds. Definition: Simultaneous.h:181 An extension of dsp::RingBuffer to allow any class to run in a separate thread Be wary of use in save... Definition: Simultaneous.h:30 Operation * get_op() Retrieve a pointer to the Operation. Definition: Simultaneous.h:48 void detect(Profile *input) vector< Reference::To< BasicBuffer > > input_buffers Buffers for storing data Definition: Simultaneous.h:167 bool newify_output_buffers() Tries to work out what sort of buffers the input_buffers should be. const InputType * get_input() const Return pointer to the appropriate InputType. Definition: UnpackerSource.h:77 bool synch Whether to synchronise work with the main thread [false]. Definition: Simultaneous.h:215 Reference::To< BasicBuffer > setup_op_input() Gives the Operation an input if it needs one. string get_output_typestring() Returns a string describing the output type. bool op_uses_an_output() Returns true if the Operation needs an output to be set. virtual void set_block_size(uint64_t _size) Set the number of time samples to load on each load_block. Definition: Input.C:399 bool newify_buffers(vector< Reference::To< BasicBuffer > > &buffers) Worker function that actually calls 'new' for each element in the vector. Definition: Simultaneous.h:218 Generated using doxygen 1.8.17
|