Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
1d5854f5
Commit
1d5854f5
authored
10 years ago
by
Joshua Colp
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix issue with AST_THREADSTORAGE_RAW when DEBUG_THREADLOCALS is enabled."
parents
1269dd06
c1d44ff0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/asterisk/threadstorage.h
+4
-1
4 additions, 1 deletion
include/asterisk/threadstorage.h
with
4 additions
and
1 deletion
include/asterisk/threadstorage.h
+
4
−
1
View file @
1d5854f5
...
...
@@ -64,6 +64,9 @@ struct ast_threadstorage {
void
__ast_threadstorage_object_add
(
void
*
key
,
size_t
len
,
const
char
*
file
,
const
char
*
function
,
unsigned
int
line
);
void
__ast_threadstorage_object_remove
(
void
*
key
);
void
__ast_threadstorage_object_replace
(
void
*
key_old
,
void
*
key_new
,
size_t
len
);
#define THREADSTORAGE_RAW_CLEANUP(v) {}
#else
#define THREADSTORAGE_RAW_CLEANUP NULL
#endif
/* defined(DEBUG_THREADLOCALS) */
/*!
...
...
@@ -85,7 +88,7 @@ void __ast_threadstorage_object_replace(void *key_old, void *key_new, size_t len
#define AST_THREADSTORAGE_EXTERNAL(name) \
extern struct ast_threadstorage name
#define AST_THREADSTORAGE_RAW(name) \
AST_THREADSTORAGE_CUSTOM_SCOPE(name, NULL,
NULL
,)
AST_THREADSTORAGE_CUSTOM_SCOPE(name, NULL,
THREADSTORAGE_RAW_CLEANUP
,)
/*!
* \brief Define a thread storage variable, with custom initialization and cleanup
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment