This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Perform a state transition to a new state
#include <sys/pmm.h> int pmm_state_change(void *hdl, unsigned new_state);
libc
This function is used to perform a state transtion to a new state.
If this is the same as the current state, this call returns without invoking any of the state functions.
This function ensures that only one thread at a time performs a state transition:
If successful, this call returns EOK.
If an error occurs, it returns -1 and errno is set one of the following:
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |