]> 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 10:38:57 +0000 (06:38 -0400)
commit08e5bbfec0587d8f2c9c9e958f56c432ef7be842
tree2e899907e207d10e7b1d722903c03b3eaf2a648e
parent31fed39078e70d0d1eca51f3e0ea143103b7dcb3
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