-
- Downloads
Add new threadpool test and fix some taskprocessor bugs.
The new thread creation test fails because Asterisk locks up while trying to lock a taskprocessor. While trying to debug that, I found a race condition during taskprocessor creation where a default taskprocessor listener could try to operate on a partially started taskprocessor. This was fixed by adding a new callback to taskprocessor listeners. Then while testing that change, I found some bugs in the taskprocessor tests where I was not properly unlocking when done with a lock. Scoped locks have spoiled me a bit. I still have not figured out why the threadpool thread creation test is locking up. git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- include/asterisk/taskprocessor.h 9 additions, 0 deletionsinclude/asterisk/taskprocessor.h
- main/taskprocessor.c 18 additions, 3 deletionsmain/taskprocessor.c
- main/threadpool.c 7 additions, 0 deletionsmain/threadpool.c
- tests/test_taskprocessor.c 11 additions, 0 deletionstests/test_taskprocessor.c
- tests/test_threadpool.c 61 additions, 0 deletionstests/test_threadpool.c
Loading
Please register or sign in to comment