]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Refactor thread creation by introducing virThreadPoolExpand
authorErik Skultety <eskultet@redhat.com>
Thu, 25 Feb 2016 11:45:32 +0000 (12:45 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 18 Apr 2016 15:06:40 +0000 (17:06 +0200)
commit396f80519eb57d3e53ea68063d1a64c55e1eb496
treeb67074e3941f6777d9824cb1e516ff037c4dcda3
parent84d21591a835c0edc363aee5fc03671aaec27815
util: Refactor thread creation by introducing virThreadPoolExpand

When either creating a threadpool, or creating a new thread to accomplish a job
that had been placed into the jobqueue, every time thread-specific data need to
be allocated, threadpool needs to be (re)-allocated and thread count indicators
updated. Make the code clearer to read by compressing these operations into a
more complex one.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/util/virthreadpool.c