diff options
author | Wind Yuan <feng.yuan@intel.com> | 2017-09-19 19:59:40 +0800 |
---|---|---|
committer | windyuan <feng.yuan@intel.com> | 2017-09-20 10:23:07 +0800 |
commit | da0d23c03cf34c2c68bbcdbd67629a5ec48290be (patch) | |
tree | c21f80b77cd04a7e166abefa59b70ce2b473b66f | |
parent | 24b388c6735156b79481f78e7ee1e9d05675a952 (diff) | |
download | libxcam-da0d23c03cf34c2c68bbcdbd67629a5ec48290be.tar.gz |
soft-worker: extra thread is for status check
Signed-off-by: Wind Yuan <feng.yuan@intel.com>
-rw-r--r-- | modules/soft/soft_worker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/soft/soft_worker.cpp b/modules/soft/soft_worker.cpp index 42042b5..c0bf1fc 100644 --- a/modules/soft/soft_worker.cpp +++ b/modules/soft/soft_worker.cpp @@ -177,7 +177,7 @@ SoftWorker::work (const SmartPtr<Worker::Arguments> &args) snprintf (thr_name, XCAM_MAX_STR_SIZE, "%s-thread-pool", XCAM_STR(get_name ())); _threads = new ThreadPool (thr_name); XCAM_ASSERT (_threads.ptr ()); - _threads->set_threads (max_items, max_items); + _threads->set_threads (max_items, max_items + 1); //extra thread to process all_items_done ret = _threads->start (); XCAM_FAIL_RETURN ( ERROR, xcam_ret_is_ok (ret), ret, |