procmgr_value_current()

Updated: April 19, 2023

Get the current value of an item being monitored

Synopsis:

#include <sys/procmgr.h>

uint64_t procmgr_value_current( int id );

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Arguments:

id
The ID of a notification added with procmgr_value_notify_add().

Description:

The procmgr_value_current() function returns the current value of the item being monitored by the notification with the given ID.

Returns:

The value of the monitored item, or ~(uint64_t)0 if an error occurred (errno is set).

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes