This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Create a new state machine
#include <sys/pmm.h> void * pmm_state_init(int nstates, pmm_state_t *states, void *data, unsigned init_state);
libc
This function creates a new state machine based on the set of supplied states:
The internal data structure for the state machine directly uses this pointer, so the states[] array must be global/static. |
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |