timing Class Reference
[Timer]
Organizes reminder.
#include "timing.hpp"
Public Member Functions | |
void | add_time (int msec, proxy_instance *pr_i, proxy_msg &pr_msg) |
void | join () |
void | start () |
void | stop () |
void | stop_all_time (proxy_instance *pr_i) |
Static Public Member Functions | |
static timing * | getInstance () |
static void | test_timing () |
Member Function Documentation
void timing::add_time | ( | int | msec, | |
proxy_instance * | pr_i, | |||
proxy_msg & | pr_msg | |||
) |
Add a new reminder with an predefined time.
- Parameters:
-
msec predefined time in millisecond proxy_instance* pointer to the owner of the reminder pr_msg message of the reminder
References HC_LOG_TRACE.
Referenced by test_timing().
timing * timing::getInstance | ( | ) | [static] |
Get an instance of the Routing module (GOF singleton).
References HC_LOG_TRACE.
Referenced by proxy::end(), proxy_instance::init(), proxy::init(), and test_timing().
void timing::join | ( | ) |
Blocked until module Timer stopped.
References HC_LOG_TRACE.
Referenced by proxy::end(), and test_timing().
void timing::start | ( | ) |
void timing::stop | ( | ) |
Stop the module Timer, but dont wait for stopped.
References HC_LOG_TRACE.
Referenced by proxy::end(), and test_timing().
void timing::stop_all_time | ( | proxy_instance * | pr_i | ) |
Delete all reminder from a specific proxy instance.
- Parameters:
-
proxy_instance* pointer to the specific proxy instance
References HC_LOG_TRACE.
void timing::test_timing | ( | ) | [static] |
Test the functionality of the module Timer.
References add_time(), getInstance(), HC_LOG_TRACE, join(), proxy_msg::msg, start(), and stop().