-
- Downloads
Remove alloc and destroy callbacks from the taskprocessor.
Now user data is allocated by the creator of the taskprocessor listener and that user data is passed into ast_taskprocessor_listener_alloc(). Similarly, freeing of the user data is left up to the user himself. He can free the data when the taskprocessor shuts down, or he can choose to hold onto it if it makes sense to do so. This, unsurprisingly, makes threadpool allocation a LOT cleaner now. git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@379120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- include/asterisk/taskprocessor.h 5 additions, 23 deletionsinclude/asterisk/taskprocessor.h
- main/taskprocessor.c 35 additions, 50 deletionsmain/taskprocessor.c
- main/threadpool.c 20 additions, 33 deletionsmain/threadpool.c
- tests/test_taskprocessor.c 18 additions, 23 deletionstests/test_taskprocessor.c
Loading
Please register or sign in to comment