]> git.ipfire.org Git - thirdparty/asterisk.git/commit
threadpool: Eliminate pointless AO2 usage.
authorCorey Farrell <git@cfware.com>
Thu, 11 Oct 2018 11:24:40 +0000 (07:24 -0400)
committerCorey Farrell <git@cfware.com>
Sat, 13 Oct 2018 11:22:14 +0000 (06:22 -0500)
commit7c49125f5b80948a045fe951632199da5729f52a
tree4dce603db66a3b27cfd931634100a759b5ce0a75
parentc4b979a84172cf14d0c00a24906b8639fd798327
threadpool: Eliminate pointless AO2 usage.

thread_worker_pair, set_size_data and task_pushed_data structures are
allocated with AO2 objects, passed to a taskprocessor, then released.
They never have multiple owners or use locking so AO2 only adds
overhead.

Change-Id: I2204d2615d9d952670fcb48e0a9c0dd1a6ba5036
main/threadpool.c