void myqttd_ctx_wait ( MyQttdCtx ctx,
long  microseconds 
)

Allows to implement a microseconds blocking wait.

Parameters
ctxThe context where the wait will be implemented.
microsecondsBlocks the caller during the value provided. 1.000.000 = 1 second.

If ctx is NULL or microseconds <= 0, the function returns inmediately.

References msg2, and myqtt_async_queue_timedpop().