CfgMgr::CancelMonitor

Table 1 Description of CfgMgr::CancelMonitor

Prototype

uint32_t CfgMgr::CancelMonitor(const std::string &kParam = "")

Description

Cancels listening.

Function Security Level

ASIL-D

Parameter (IN)

kParam

Key value, for example, use_sim_time. By default, this parameter is left blank, indicating that listening on all parameters is canceled.

Parameter (OUT)

None

Return

uint32_t

CFGMGR_SUCCESS is returned upon success; otherwise, the corresponding error code is returned.

Usage

None

Precautions

  • If the callback function registered by the Monitor is being executed when the listening is canceled, the function is deregistered after the callback is processed.
  • If kParam is listened for multiple times (see CfgMgr::Monitor), all functions are deregistered when listening is canceled.
  • If CfgMgr::Monitor is called,CancelMonitor must be called to destroy threads when processes exit. Otherwise, a core dump may occur. If OpenHiva::Shutdown is called, CancelMonitor does not need to be called because OpenHiva::Shutdown calls CancelMonitor by default.