30 lines
556 B
C++
30 lines
556 B
C++
#include "res_monitor.h"
|
|
|
|
|
|
#include "../../common/event_monitor.h"
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// class res_mon
|
|
res_mon::res_mon(event_handler* h) : handler_(h)
|
|
{
|
|
if (handler_)
|
|
handler_->add_ref();
|
|
}
|
|
res_mon::~res_mon()
|
|
{}
|
|
|
|
int res_mon::set_monitor_object(mon_obj obj, uint8_t consume_percent)
|
|
{
|
|
return 0;
|
|
}
|
|
int res_mon::stop(void)
|
|
{
|
|
if (handler_)
|
|
handler_->release();
|
|
handler_ = nullptr;
|
|
|
|
return 0;
|
|
}
|