mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -658,7 +658,9 @@ static void threadpool_tps_emptied(struct ast_taskprocessor_listener *listener)
|
||||
}
|
||||
|
||||
if (pool->listener && pool->listener->callbacks->emptied) {
|
||||
ast_taskprocessor_push(pool->control_tps, queued_emptied, pool);
|
||||
if (ast_taskprocessor_push(pool->control_tps, queued_emptied, pool)) {
|
||||
/* Nothing to do here but we need the check to keep the compiler happy. */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user