[ThreadPool] Solve thread transitions issue (#4344)
authorZhao Wu <wuzhaozju@gmail.com>
Wed, 20 Nov 2019 20:43:20 +0000 (04:43 +0800)
committerWuwei Lin <wuwei@apache.org>
Wed, 20 Nov 2019 20:43:20 +0000 (15:43 -0500)
commit6040b6f95798c811f47fb2aaf470c7a799b8caa7
treef49d9ba86d258def5edd57e4c58eed52807db509
parent3a133550aa2cd52e911cb0d7b033e90eef6daa1f
[ThreadPool] Solve thread transitions issue (#4344)

* [ThreadPool] Solve thread transitions issue

* Use pthread_atfork to avoid master thread affinity be derived by child.

* Code Format

* comment of exclude_worker0_

* set full cpu affinity

* Redundant blank line

* CPPLint

* CPPLint namespace

* CPPLint

* Fix the wrong logic of bind master thread.
src/runtime/thread_pool.cc
src/runtime/threading_backend.cc