Condition Class Reference

#include <condition.h>


Public Member Functions

 Condition (int init_value=0, char *title=0, int is_binary=0)
 ~Condition ()
void reset ()
void lock (char *location=0)
void unlock ()
int timed_lock (int microseconds, char *location=0)
int get_value ()

Data Fields

pthread_cond_t cond
pthread_mutex_t mutex
int value
int init_value
int is_binary
char * title


Detailed Description

Definition at line 6 of file condition.h.


Constructor & Destructor Documentation

Condition::Condition ( int  init_value = 0,
char *  title = 0,
int  is_binary = 0 
)

Definition at line 10 of file condition.C.

References cond, mutex, NULL, and value.

Condition::~Condition (  ) 

Definition at line 19 of file condition.C.

References cond, mutex, and UNSET_ALL_LOCKS.


Member Function Documentation

void Condition::reset (  ) 

void Condition::lock ( char *  location = 0  ) 

Definition at line 37 of file condition.C.

References cond, is_binary, mutex, SET_LOCK, title, UNSET_LOCK2, and value.

Referenced by RenderEngine::arm_command(), RecordVideo::arm_recording(), RecordAudio::arm_recording(), CICache::check_out(), ChannelEditPictureThread::close_threads(), ChannelEditEditThread::close_threads(), ChannelEditThread::close_threads(), IndexFile::create_index(), PlaybackEngine::create_objects(), ChannelEditEditThread::edit_channel(), ChannelEditPictureThread::edit_picture(), FileThread::get_audio_buffer(), BC_WindowBase::get_event(), DeviceDVBInput::get_signal_strength(), FileThread::get_video_buffer(), PlaybackEngine::init_tracking(), BC_Repeater::initialize(), BC_NewFolderThread::interrupt(), ThreadIndexer::interrupt_build(), MainIndexes::interrupt_build(), PlaybackEngine::interrupt_playback(), RecordThread::pause_recording(), VirtualAConsole::process_buffer(), LoadServer::process_packages(), AudioDevice::read_buffer(), FileThread::read_frame(), RecordThread::resume_recording(), SharpenEngine::run(), ColorBalanceEngine::run(), RotateEngine::run(), BC_Synchronous::run(), BC_Repeater::run(), ResourceThread::run(), RenderFarmWatchdog::run(), RemoveThread::run(), RecordVideo::run(), RecordThread::run(), RecordMonitorThread::run(), RecordStatusThread::run(), RecordAudio::run(), PlaybackEngine::run(), MainIndexes::run(), LoadClient::run(), IndexThread::run(), FileThread::run(), FileMPEGVideo::run(), FileMOVThread::run(), CWindowTool::run(), ChannelEditThread::run(), BRenderThread::run(), AudioDevice::run_output(), BC_Synchronous::send_command(), TransportQue::send_command(), SharpenEngine::SharpenEngine(), BC_DialogThread::start(), RenderEngine::start_command(), CommonRender::start_command(), FileMOVThread::start_encoding(), BC_NewFolderThread::start_new_folder(), Tracking::start_playback(), RecordMonitorThread::start_playback(), RecordThread::start_recording(), CWindowTool::start_tool(), ColorThread::start_window(), PluginDialogThread::start_window(), BRender::stop(), Render::stop_operation(), BC_Repeater::stop_repeating(), FileThread::stop_writing(), TransportQue::update_change_type(), RotateEngine::wait_completion(), AudioDevice::wait_for_startup(), SharpenEngine::wait_process_frame(), ColorBalanceEngine::wait_process_frame(), File::write_compressed_frame(), RecordMonitorThread::write_frame(), FileMPEG::write_frames(), FileMOV::write_frames(), File::write_frames(), File::write_samples(), BC_DialogThread::~BC_DialogThread(), ColorThread::~ColorThread(), and PluginDialogThread::~PluginDialogThread().

void Condition::unlock (  ) 

Definition at line 54 of file condition.C.

References cond, is_binary, mutex, and value.

Referenced by RenderEngine::arm_command(), RenderFarmWatchdog::begin_request(), CICache::check_in(), FileMPEG::close_file(), ChannelEditPictureThread::close_threads(), ChannelEditEditThread::close_threads(), ChannelEditThread::close_threads(), IndexFile::create_index(), BC_WindowBase::dispatch_repeat_event(), FileMOVThread::encode_buffer(), RenderFarmWatchdog::end_request(), RotateEngine::generate_matrix(), VDeviceBUZInput::get_buffer(), BC_Synchronous::handle_command_base(), BC_NewFolderThread::interrupt(), ThreadIndexer::interrupt_build(), MainIndexes::interrupt_build(), PlaybackEngine::interrupt_playback(), RecordThread::pause_recording(), RotateEngine::perform_rotation(), LoadServer::process_packages(), BC_WindowBase::put_event(), BC_Synchronous::quit(), FileThread::read_frame(), RemoveThread::remove_file(), Render::render(), RecordThread::resume_recording(), SharpenEngine::run(), ColorThread::run(), ColorBalanceEngine::run(), RotateEngine::run(), BC_Repeater::run(), BC_NewFolderThread::run(), BC_DialogThread::run(), VRender::run(), VDeviceBUZInput::run(), Tracking::run(), ThreadIndexer::run(), RenderEngine::run(), RecordVideo::run(), RecordThread::run(), RecordAudio::run(), PluginDialogThread::run(), PlaybackEngine::run(), MainIndexes::run(), LoadClient::run(), IndexThread::run(), FileThread::run(), FileMPEGVideo::run(), FileMOVThread::run(), CWindowTool::run(), CommonRender::run(), ChannelEditPictureThread::run(), ChannelEditEditThread::run(), ChannelEditThread::run(), ARender::run(), AudioDevice::run_input(), AudioDevice::run_output(), BC_Synchronous::send_command(), TransportQue::send_command(), BRenderThread::send_command(), BC_Synchronous::send_garbage(), FileThread::set_layer(), FileThread::set_video_position(), BC_DialogThread::start(), MainIndexes::start_build(), RenderEngine::start_command(), ResourceThread::start_draw(), SharpenEngine::start_process_frame(), ColorBalanceEngine::start_process_frame(), RecordVideo::start_recording(), RecordThread::start_recording(), RecordAudio::start_recording(), BC_Repeater::start_repeating(), CWindowTool::start_tool(), BRenderThread::stop(), FileMOVThread::stop_encoding(), MainIndexes::stop_loop(), RecordMonitorThread::stop_playback(), FileThread::stop_reading(), RecordThread::stop_recording(), PlaybackEngine::stop_tracking(), RecordMonitorThread::unlock_input(), TransportQue::update_change_type(), RecordStatusThread::update_clipped_samples(), RecordStatusThread::update_dropped_frames(), RecordStatusThread::update_position(), FileThread::write_buffer(), File::write_compressed_frame(), RecordMonitorThread::write_frame(), FileMPEG::write_frames(), FileMOV::write_frames(), File::write_frames(), File::write_samples(), BC_DialogThread::~BC_DialogThread(), BC_Repeater::~BC_Repeater(), BRenderThread::~BRenderThread(), ColorBalanceEngine::~ColorBalanceEngine(), ColorThread::~ColorThread(), CWindowTool::~CWindowTool(), LoadClient::~LoadClient(), PluginDialogThread::~PluginDialogThread(), RecordStatusThread::~RecordStatusThread(), RenderFarmWatchdog::~RenderFarmWatchdog(), RotateEngine::~RotateEngine(), and SharpenEngine::~SharpenEngine().

int Condition::timed_lock ( int  microseconds,
char *  location = 0 
)

Definition at line 69 of file condition.C.

References cond, is_binary, mutex, SET_LOCK, title, UNSET_LOCK2, and value.

Referenced by VDeviceBUZInput::get_buffer(), and RenderFarmWatchdog::run().

int Condition::get_value (  ) 

Definition at line 113 of file condition.C.

References value.

Referenced by RenderEngine::arm_command().


Field Documentation

pthread_cond_t Condition::cond

Definition at line 25 of file condition.h.

Referenced by Condition(), lock(), reset(), timed_lock(), unlock(), and ~Condition().

pthread_mutex_t Condition::mutex

Definition at line 26 of file condition.h.

Referenced by Condition(), lock(), reset(), timed_lock(), unlock(), and ~Condition().

Definition at line 27 of file condition.h.

Referenced by Condition(), get_value(), lock(), reset(), timed_lock(), and unlock().

Definition at line 28 of file condition.h.

Referenced by reset().

Definition at line 29 of file condition.h.

Referenced by lock(), timed_lock(), and unlock().

Definition at line 30 of file condition.h.

Referenced by lock(), and timed_lock().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:19:37 2008 for Cinelerra by  doxygen 1.5.5