zrtp_retry_task_t Struct Reference
[ZRTP Delay Calls]

Delay Call wrapper. More...

#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.


Detailed Description

Delay Call wrapper.

Field Documentation

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.

Note:
For internal use only. Don't' modify this field in implementation.

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.

Note:
For internal use only. Don't' modify this field in implementation.

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.


The documentation for this struct was generated from the following file:

Generated on Wed Dec 9 17:31:06 2009 for libzrtp  zfone