Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
resolver_data Struct Reference

File-scoped data used during resolver tests. More...

Collaboration diagram for resolver_data:
Collaboration graph
[legend]

Data Fields

ast_cond_t cancel_cond
 
int canceled
 
ast_mutex_t lock
 
int resolution_complete
 
int resolve_called
 

Detailed Description

File-scoped data used during resolver tests.

This data has to live at file-scope since it needs to be accessible by multiple threads.

Definition at line 644 of file test_dns.c.

Field Documentation

◆ cancel_cond

ast_cond_t cancel_cond

Condition variable used to coordinate canceling a query

Definition at line 654 of file test_dns.c.

Referenced by resolution_thread(), resolver_data_cleanup(), resolver_data_init(), and test_cancel().

◆ canceled

int canceled

True if the resolver's cancel() method has been called

Definition at line 648 of file test_dns.c.

Referenced by AST_TEST_DEFINE(), resolution_thread(), resolver_data_init(), and test_cancel().

◆ lock

Lock used for protecting cancel_cond

Definition at line 652 of file test_dns.c.

Referenced by resolution_thread(), resolver_data_cleanup(), resolver_data_init(), and test_cancel().

◆ resolution_complete

int resolution_complete

True if resolution successfully completed. This is mutually exclusive with canceled

Definition at line 650 of file test_dns.c.

Referenced by AST_TEST_DEFINE(), resolution_thread(), and resolver_data_init().

◆ resolve_called

int resolve_called

True if the resolver's resolve() method has been called

Definition at line 646 of file test_dns.c.

Referenced by AST_TEST_DEFINE(), resolver_data_init(), and test_resolve().


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