serializer: move/add asterisk serializer pool functionality
Serializer pools have previously existed in Asterisk. However, for the most part the code has been duplicated across modules. This patch abstracts the code into an 'ast_serializer_pool' object. As well the code is now centralized in serializer.c/h. In addition serializer pools can now optionally be monitored by a shutdown group. This will prevent the pool from being destroyed until all serializers have completed. Change-Id: Ib1e906144b90ffd4d5ed9826f0b719ca9c6d2971
Showing
- include/asterisk/serializer.h 85 additions, 0 deletionsinclude/asterisk/serializer.h
- include/asterisk/taskprocessor.h 9 additions, 0 deletionsinclude/asterisk/taskprocessor.h
- main/serializer.c 189 additions, 0 deletionsmain/serializer.c
- main/taskprocessor.c 12 additions, 1 deletionmain/taskprocessor.c
- tests/test_taskprocessor.c 76 additions, 0 deletionstests/test_taskprocessor.c
include/asterisk/serializer.h
0 → 100644
main/serializer.c
0 → 100644
Please register or sign in to comment