#include <zrtp_iface.h>
Data Fields | |
zrtp_call_callback_t | callback |
Task action callback. | |
zrtp_time_t | timeout |
Timeout before call in milliseconds. | |
void * | usr_data |
User data pointer. | |
uint8_t | _is_enabled |
Task activity flag. | |
uint32_t | _retrys |
Number of task retries. | |
uint8_t | _is_busy |
Task Busy flag. |
uint8_t _is_busy |
Task Busy flag.
Built-in cache implementation uses this flag to protect task from being removed during the callback.
Default cache implementation "locks" this flag before call zrtp_retry_task::callback and "unlocks" when the call is performed. zrtp_callback_scheduler_t::on_wait_call_later exits when there are no callbacks in progress - no tasks with _is_busy
enabled.
uint8_t _is_enabled |
Task activity flag.
Libzrtp unsets this flag on task canceling. It prevents the scheduler engine from re-adding an already canceled task. Callback handlers skip passive tasks.
uint32_t _retrys |
Number of task retries.
Every handler that attempts the task increases it by one. When the limit is reached the scheduler should stop retries and performs a specified action - generally raises an error.
void* usr_data |
User data pointer.
Pointer to the user data. This pointer can be used for fast access to some additional data attached to this task by the user application.