From bd53e7ee4c45e7cef357f8aba2e8cb842ac11e92 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 19 Oct 2006 01:00:57 +0000 Subject: Extend the thread storage API such that a custom initialization function can be called for each thread specific object after they are allocated. Note that there was already the ability to define a custom cleanup function. Also, if the custom cleanup function is used, it *MUST* call free on the thread specific object at the end. There is no way to have this magically done that I can think of because the cleanup function registered with the pthread implementation will only call the function back with a pointer to the thread specific object, not the parent ast_threadstorage object. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45623 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/utils.c') diff --git a/main/utils.c b/main/utils.c index ceb049f3a..482bb3eaf 100644 --- a/main/utils.c +++ b/main/utils.c @@ -65,7 +65,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") static char base64[64]; static char b2a[256]; -AST_THREADSTORAGE(inet_ntoa_buf, inet_ntoa_buf_init); +AST_THREADSTORAGE(inet_ntoa_buf); #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__) -- cgit v1.2.3