hostServiceEnable
Declaration
long hostServiceEnable(HostService service, MPI_BOOL enable)
Required Header: apputil.h
Description
hostServiceEnable enables and/or disables the host service SISR thread from executing the serviceFunction. This does not kill the hostService SISR thread. This method is provided to enable or temporarily disable the serviceFunction from servicing host interrupt events.
NOTE: By default, the SISR thread runs with the serviceFunction disabled. This method needs to be called after a hostServiceCreate(...) to enable the execution of the serviceFunction.
If "enabled" is |
Then |
---|---|
FALSE |
HostServiceEnable will disable service. |
TRUE |
HostServiceEnable will enable service. |
Return Values | |
---|---|
MPIMessageOK | |
MPIMessageARG_INVALID |