diff options
Diffstat (limited to 'src/usr/diag/mdia/mdiamonitor.H')
-rwxr-xr-x | src/usr/diag/mdia/mdiamonitor.H | 107 |
1 files changed, 44 insertions, 63 deletions
diff --git a/src/usr/diag/mdia/mdiamonitor.H b/src/usr/diag/mdia/mdiamonitor.H index 866829233..7ba686b8f 100755 --- a/src/usr/diag/mdia/mdiamonitor.H +++ b/src/usr/diag/mdia/mdiamonitor.H @@ -1,25 +1,26 @@ -// IBM_PROLOG_BEGIN_TAG -// This is an automatically generated prolog. -// -// $Source: src/usr/diag/mdia/mdiamonitor.H $ -// -// IBM CONFIDENTIAL -// -// COPYRIGHT International Business Machines Corp. 2012 -// -// p1 -// -// Object Code Only (OCO) source materials -// Licensed Internal Code Source Materials -// IBM HostBoot Licensed Internal Code -// -// The source code for this program is not published or other- -// wise divested of its trade secrets, irrespective of what has -// been deposited with the U.S. Copyright Office. -// -// Origin: 30 -// -// IBM_PROLOG_END +/* IBM_PROLOG_BEGIN_TAG + * This is an automatically generated prolog. + * + * $Source: src/usr/diag/mdia/mdiamonitor.H $ + * + * IBM CONFIDENTIAL + * + * COPYRIGHT International Business Machines Corp. 2012 + * + * p1 + * + * Object Code Only (OCO) source materials + * Licensed Internal Code Source Materials + * IBM HostBoot Licensed Internal Code + * + * The source code for this program is not published or other- + * wise divested of its trade secrets, irrespective of what has + * been deposited with the U.S. Copyright Office. + * + * Origin: 30 + * + * IBM_PROLOG_END_TAG + */ #ifndef __MSS_MEMDIAG_MDIAMONITOR_H #define __MSS_MEMDIAG_MDIAMONITOR_H @@ -91,43 +92,44 @@ class CommandMonitor /** * @brief dtor */ - ~CommandMonitor(); + virtual ~CommandMonitor(); - private: + protected: /** - * @brief main thread function + * @brief serialization mutex */ - static void staticMain(void *); + mutex_t iv_mutex; /** - * @brief main thread function - * - * @param[in] i_sm state machine provided for callback + * @brief shutdown request indicator */ - void threadMain(StateMachine & i_sm); + bool iv_shutdown; /** - * @brief Get the thread id - * - * @retval ThreadID of CommandMonitor + * @brief aliases. Map containing monitorID key and timeout entries. */ - tid_t getTID(); + typedef std::map<uint64_t, uint64_t> MonitorMap; + typedef MonitorMap::iterator monitorMapIterator; /** - * @brief Is the CommandMonitor shut down - * - * @retval true if shutdown - * false if not shutdown + * @brief maint command monitors + */ + MonitorMap iv_monitors; + + private: + + /** + * @brief main thread function */ - bool isShutdown(); + static void staticMain(void *); /** - * @brief Get the monitor id counter + * @brief main thread function * - * @retval Monitor ID counter + * @param[in] i_sm state machine provided for callback */ - uint64_t getMonitorID(); + virtual void threadMain(StateMachine & i_sm); /** * @brief Get MonitorMap Timeout entry @@ -139,37 +141,16 @@ class CommandMonitor uint64_t getMonitorMapTimeoutEntry(uint64_t i_monitor); /** - * @brief serialization mutex - */ - mutex_t iv_mutex; - - /** * @brief thread number */ tid_t iv_tid; /** - * @brief shutdown request indicator - */ - bool iv_shutdown; - - /** * @brief monitor ID counter */ uint64_t iv_nextMonitor; /** - * @brief aliases. Map containing monitorID key and timeout entries. - */ - typedef std::map<uint64_t, uint64_t> MonitorMap; - typedef MonitorMap::iterator monitorMapIterator; - - /** - * @brief maint command monitors - */ - MonitorMap iv_monitors; - - /** * @brief list of targets to do polling */ TARGETING::TargetHandleList iv_pollingList; |