![]() |
Home page |
Mailing list |
Docs
Asterisk developer's documentation :: Codename Pineapple
threadstorage.h File Reference
Definition in file threadstorage.h.
#include <pthread.h>
#include "asterisk/utils.h"
#include "asterisk/inline_api.h"
Include dependency graph for threadstorage.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | ast_threadstorage |
| data for a thread locally stored variable More... | |
Defines | |
| #define | AST_THREADSTORAGE(name) AST_THREADSTORAGE_CUSTOM(name, NULL, ast_free) |
| Define a thread storage variable. | |
| #define | AST_THREADSTORAGE_CUSTOM(name, c_init, c_cleanup) |
| Define a thread storage variable, with custom initialization and cleanup. | |
|
|
Define a thread storage variable.
Example usage: AST_THREADSTORAGE(my_buf); Definition at line 83 of file threadstorage.h. |
|
|
Define a thread storage variable, with custom initialization and cleanup.
AST_THREADSTORAGE_CUSTOM(my_buf, my_init, my_cleanup); Definition at line 103 of file threadstorage.h. |