mme_timebase_set()

Ensure that database time values increase monotonically

Synopsis:

#include <mme/mme.h>

int mme_timebase_set( mme_hdl_t *hdl );

Arguments:

hdl
An MME connection handle.

Library:

mme

Description:

The function mme_timebase_set() ensures that the database time values increase monotonically. This function should be used to ensure correct database time values on systems that do not have a real-time clock implemented, or if the system time is adjusted backwards.

As an alternative to running mme_timebase_set(), if this function is needed for every MME startup, consider enabling the <TimebaseSet> option in the MME configuration file. Setting this option runs the same function as a call to mme_timebase_set(). It is exactly equivalent to calling mme_timebase_set() at every startup. See Database time base in the MME Configuration Guide chapter Configuring Database Behavior.

Events

None returned

Blocking and validation

This function performs no validations and does not block.

Returns:

0
Success: the ID of the synchronization operation.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

Database configuration elements in the MME Configuration Guide chapter Configuring Database Behavior.