]> git.ipfire.org Git - thirdparty/asterisk.git/commit
taskprocessor: Warn on unused result from pushing task.
authorCorey Farrell <git@cfware.com>
Sun, 14 Oct 2018 12:58:59 +0000 (08:58 -0400)
committerCorey Farrell <git@cfware.com>
Wed, 17 Oct 2018 13:27:25 +0000 (08:27 -0500)
commitabee4fd0722a2421eae4430f1443641fc6130286
treec7500ed49231f4aeb3976b3722e2f29abcc88219
parentebd8e0720dca1671f5b6e2747e66a4f6f23ea9d5
taskprocessor: Warn on unused result from pushing task.

Add attribute_warn_unused_result to ast_taskprocessor_push,
ast_taskprocessor_push_local and ast_threadpool_push.  This will help
ensure we perform the necessary cleanup upon failure.

Change-Id: I7e4079bd7b21cfe52fb431ea79e41314520c3f6d
apps/app_confbridge.c
include/asterisk/taskprocessor.h
include/asterisk/threadpool.h
main/stasis.c
main/taskprocessor.c
main/threadpool.c
tests/test_taskprocessor.c
tests/test_threadpool.c