Public Member Functions | Private Attributes

cmn_Condition Class Reference
[Common, basic classes, functions and types]

#include <thread.h>

Collaboration diagram for cmn_Condition:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 cmn_Condition (cmn_Mutex *a_mutex)
void Wait ()
int TimedWait (unsigned long secs, unsigned long nanosecs=0)
void Signal ()
void Broadcast ()

Private Attributes

 log_CLASSID_m
cmn_Mutexm_thDbg_x

Detailed Description

Definition at line 114 of file thread.h.


Constructor & Destructor Documentation

cmn_Condition::cmn_Condition ( cmn_Mutex a_mutex  )  [inline]

Definition at line 117 of file thread.h.

    : omni_condition( a_mutex ), m_thDbg_x(a_mutex) {};
#else
    : omni_condition( a_mutex ) {};


Member Function Documentation

void cmn_Condition::Broadcast (  ) 

Definition at line 295 of file cmn_thread.cpp.

References OMNITHREAD_EXEC_m.

Referenced by pm_FriProcessor::Aborted(), i_Job_i::AbortJob(), hsm_HL7MessageProxy::Append(), i_Job_i::AssignResources(), pm_FriProcessor::Completed(), i_LibraryAgentManual_i::ConfirmMountRequest(), cmn_ThreadCounter::Dec(), fio_DataBase::EndTransaction(), i_BackupJob_i::Execute(), df_BlockManager::Flush(), i_ReorgJob_i::GetNewResources(), i_RedundantCopyJob_i::GetNewResources(), i_MigrationJob_i::GetNewResources(), pm_FriProcessor::Insert(), i_ReorgJob_i::MediumOperationComplete(), i_RedundantCopyJob_i::MediumOperationComplete(), i_RecallJob_i::MediumOperationComplete(), i_MigrationJob_i::MediumOperationComplete(), i_MediumDupl_i::MediumOperationComplete(), i_MaintFriJob_i::MediumOperationComplete(), i_EfficientRecallJob_i::MediumOperationComplete(), rm_DBThread::Process(), stx_XStack::Push(), hsm_FreeJobIdxStack::Push(), cmn_oneWRmanyRD::ReadDone(), df_BlockManager::ReaderFinished(), i_Job_i::RegisterBEA(), fio_DataBase::RegularSuspend(), df_BlockManager::Release(), i_Job_i::Remove(), i_BackEndAgent_i::Remove(), i_BackupJob_i::Remove(), rm_DBThread::Resume(), rm_DBThread::Run(), hsm_FHmigc::Run(), df_BlockManager::SetEndOfData(), ivd_DD_Result::SetResult(), hsm_TimedList::Shutdown(), hsm_HL7MessageProxy::Stop(), hsm_FHmigc::TrigMigration(), cmn_LockIDbyOwn< _T, _size >::UnLockByID(), cmn_LockID< _T >::UnLockByID(), fio_DataBase::UnlockDB(), i_BackEndAgent_i::UseResources(), hsm_FHrelc::WakeUp(), hsm_FHmigc::WakeUp(), hsm_FHADPRecall::WakeUp(), cmn_oneWRmanyRD::WriteDone(), and i_ResourceManager_i::~i_ResourceManager_i().

                              {
    OMNITHREAD_EXEC_m(Broadcast, broadcast());
}

Here is the caller graph for this function:

void cmn_Condition::Signal (  ) 

Definition at line 291 of file cmn_thread.cpp.

References OMNITHREAD_EXEC_m.

                           {
    OMNITHREAD_EXEC_m(Signal, signal());
}

int cmn_Condition::TimedWait ( unsigned long  secs,
unsigned long  nanosecs = 0 
)

Definition at line 278 of file cmn_thread.cpp.

References m_thDbg_x, and OMNITHREAD_EXEC_m.

Referenced by df_BlockManager::GetFree(), df_BlockManager::GetFull(), hsm_TimedList::Run(), hsm_FHrelc::Run(), hsm_FHmigc::Run(), hsm_HL7MessageProxy::RunUndetached(), cmn_ThreadCounter::WaitAllEnd(), i_Job_i::WaitBea(), i_Job_i::WaitBeasToFinish(), df_BlockManager::WaitReadersToComplete(), and df_BlockManager::WaitWriterToComplete().

                                                                       {
    int waited;
#ifdef ivd_THREAD_DEBUG_d
    m_thDbg_x->FakeUnlock();
#endif
    OMNITHREAD_EXEC_m(TimedWait, waited = timedwait(secs, nanosecs));

#ifdef ivd_THREAD_DEBUG_d
    m_thDbg_x->FakeLock();
#endif
    return waited;
}

Here is the caller graph for this function:

void cmn_Condition::Wait (  ) 

Member Data Documentation

Definition at line 153 of file thread.h.

Definition at line 154 of file thread.h.

Referenced by TimedWait(), and Wait().


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