-
- Downloads
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
Showing
- channels/chan_sip.c 1 addition, 1 deletionchannels/chan_sip.c
- channels/chan_skinny.c 2 additions, 2 deletionschannels/chan_skinny.c
- channels/iax2-parser.c 1 addition, 1 deletionchannels/iax2-parser.c
- include/asterisk/threadstorage.h 37 additions, 17 deletionsinclude/asterisk/threadstorage.h
- main/channel.c 1 addition, 1 deletionmain/channel.c
- main/cli.c 1 addition, 1 deletionmain/cli.c
- main/frame.c 1 addition, 1 deletionmain/frame.c
- main/logger.c 2 additions, 2 deletionsmain/logger.c
- main/manager.c 2 additions, 2 deletionsmain/manager.c
- main/utils.c 1 addition, 1 deletionmain/utils.c
Loading
Please register or sign in to comment