1 #ifndef threadsignal_HEADER_GUARD
2 #define threadsignal_HEADER_GUARD
65 const static unsigned none = 0;
66 const static unsigned livethread = 1;
67 const static unsigned avthread = 2;
68 const static unsigned openglthread = 3;
69 const static unsigned valkkafswriterthread = 4;
70 const static unsigned valkkafsreaderthread = 5;
71 const static unsigned filecachethread = 6;
72 const static unsigned fdwritethread = 7;
73 const static unsigned offline = 8;
117 inline std::ostream &operator<<(std::ostream &os,
OpenGLSignalPars const &m)
119 return os <<
"<OpenGLSignalPars: slot=" << m.
n_slot <<
" x_window_id=" << m.
x_window_id <<
" z=" << m.
z <<
" render_context=" << m.
render_ctx <<
" success=" << m.
success <<
">";
168 enum class ValkkaFSWriterSignal
186 ValkkaFSWriterSignal signal;
203 enum class ValkkaFSReaderSignal
221 ValkkaFSReaderSignal signal;
Constant/default values, version numbers.
AVSignal
Signals used by AVThread.
Definition: threadsignal.h:82
AbstractFileState
Describes the state of a stream.
Definition: threadsignal.h:43
OpenGLSignal
Signals used by OpenGLThread.
Definition: threadsignal.h:127
@ new_rectangle
used by API newRectangleCall
@ del_render_group
used by API delRenderGroupCall
@ clear_objects
used by API clearObjectsCall
@ new_render_group
used by API newRenderCroupCall
@ info
used by API infoCall
@ del_render_context
used by API delRenderContextCall
@ new_render_context
used by API newRenderContextCall
Different signal types understood by Threads (sending them to the Thread by an interrupt (Thread::sen...
Definition: threadsignal.h:64
Redefinition of characteristic signal contexts (info that goes with the signal) for AVThread thread.
Definition: threadsignal.h:94
Definition: threadsignal.h:227
Encapsulates data sent by the signal.
Definition: threadsignal.h:149
OpenGLSignal signal
The signal.
Definition: threadsignal.h:150
Signal information for OpenGLThread.
Definition: threadsignal.h:104
int render_ctx
in: del_render_context, out: new_render_context
Definition: threadsignal.h:109
unsigned int z
in: new_render_context
Definition: threadsignal.h:108
Window x_window_id
in: new_render_context, new_render_group, del_render_group
Definition: threadsignal.h:106
std::array< float, 4 > object_coordinates
in: new_rectangle
Definition: threadsignal.h:111
SlotNumber n_slot
in: new_render_context
Definition: threadsignal.h:105
bool success
return value: was the call succesful?
Definition: threadsignal.h:113
Encapsulate data sent in the ValkkaFSReaderSignal.
Definition: threadsignal.h:220
Signal information for ValkkaFSReaderThread.
Definition: threadsignal.h:194
IdNumber id
Id. Used by set_slot_id and unset_slot_id.
Definition: threadsignal.h:197
std::list< std::size_t > block_list
List of blocks to be read and sent. Used by pull_blocks.
Definition: threadsignal.h:195
SlotNumber n_slot
Slot number. Used by set_slot_id and unset_slot_id.
Definition: threadsignal.h:196
Encapsulate data sent in the ValkkaFSWriterSignal.
Definition: threadsignal.h:185
Signal information for ValkkaFSWriterThread.
Definition: threadsignal.h:159
IdNumber id
Id. Used by set_slot_id and unset_slot_id.
Definition: threadsignal.h:162
SlotNumber n_slot
Slot number. Used by set_slot_id and unset_slot_id.
Definition: threadsignal.h:161
std::size_t n_block
Seek target block. Used by signal seek.
Definition: threadsignal.h:160