![]() |
![]() |
![]() |
![]() |
Set the time period on the unblocking timer
#include <mme/mme.h> int mme_set_api_timeout( mme_hdl_t *hdl, uint32_t *milliseconds );
mme
The function mme_set_api_timeout() sets, for the current control context, the amount of time, in milliseconds, the MME will wait before unblocking the client application when it is blocked by calls to the MME.
If mme_set_api_timeout() is set, API calls that are blocked beyond the set timeout period will unblock the client, returning early with the errno set to EINTR.
For information about how to confirm the cause of an EINTR error, see mme_get_api_timeout_remaining().
![]() |
The MME's default configuration is to disable unblocking capabilities, which disables mme_set_api_timeout(). To enable the MME's unblocking capability, set the <Unblock> configuration element attribute to “true”. |
![]() |
The MME connection handle, mme_hdl_t, is not thread safe; only one instance can be used at a time. This limitation means that mme_set_api_timeout() can not be called concurrently with another function call: you can call mme_set_api_timeout() at any time to configure the behavior of future calls to the MME API, but you can't use mme_set_api_timeout() to force the return of a call that has already been made. |
None delivered.
This function doesn't block.
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
mme_get_api_timeout_remaining()
![]() |
![]() |
![]() |
![]() |