]> 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:29 +0000 (08:27 -0500)
commit01716f70e6809cd3b1eac576bdef6bb6451ed65a
tree806b69f0f73a44d46a4f1ba3abfa6c034a778d32
parent6296b5c7befb4827589432a2987f2864bc95c5ff
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