commit | 6922d93d8e4fc2420149b0670a507ac7cbd40684 | [log] [tgz] |
---|---|---|
author | Wentong Wu <wentong.wu@intel.com> | Sat May 11 19:43:01 2019 +0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Sat May 11 08:24:36 2019 -0400 |
tree | 1d01b41230947870dbd5cd7da3e8e71df3228e2c | |
parent | 6f6b46971a76deb41851b37ce0f6ea65b5287c71 [diff] |
lib/posix: correct the meaning of CONFIG_MAX_PTHREAD_COUNT Current code implement CONFIG_MAX_PTHREAD_COUNT as the maximum number of POSIX threads that can ever be created, rather than the maximum number of active POSIX threads. Use pthread_state of struct posix_thread to track the state of posix thread in posix_thread_pool so that we can reuse the unused posix thread. Fixes #15516. Signed-off-by: Wentong Wu <wentong.wu@intel.com>