mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-29 15:36:13 +00:00
Update documentation; AST_THREADSTORAGE() in trunk only takes a single
argument. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@146928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -139,8 +139,7 @@ static void __init_##name(void) \
|
|||||||
*
|
*
|
||||||
* \param ts This is a pointer to the thread storage structure declared by using
|
* \param ts This is a pointer to the thread storage structure declared by using
|
||||||
* the AST_THREADSTORAGE macro. If declared with
|
* the AST_THREADSTORAGE macro. If declared with
|
||||||
* AST_THREADSTORAGE(my_buf, my_buf_init), then this argument would be
|
* AST_THREADSTORAGE(my_buf), then this argument would be (&my_buf).
|
||||||
* (&my_buf).
|
|
||||||
* \param init_size This is the amount of space to be allocated the first time
|
* \param init_size This is the amount of space to be allocated the first time
|
||||||
* this thread requests its data. Thus, this should be the size that the
|
* this thread requests its data. Thus, this should be the size that the
|
||||||
* code accessing this thread storage is assuming the size to be.
|
* code accessing this thread storage is assuming the size to be.
|
||||||
@@ -151,7 +150,7 @@ static void __init_##name(void) \
|
|||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* \code
|
* \code
|
||||||
* AST_THREADSTORAGE(my_buf, my_buf_init);
|
* AST_THREADSTORAGE(my_buf);
|
||||||
* #define MY_BUF_SIZE 128
|
* #define MY_BUF_SIZE 128
|
||||||
* ...
|
* ...
|
||||||
* void my_func(const char *fmt, ...)
|
* void my_func(const char *fmt, ...)
|
||||||
|
|||||||
Reference in New Issue
Block a user