@└────> # ./a.out thread_pool::threadLoop() tid : 139841310938880 start. thread_pool::take() tid : 139841310938880 wakeup. thread_pool::take() tid : 139841310938880 took a task! thread_pool::threadLoop() tid : 139841302546176 start. thread_pool::take() tid : 139841302546176 wakeup. thread_pool::take() tid : 139841302546176 took a task! thread_pool::threadLoop() tid : 139841294153472 start. thread_pool::take() tid : 139841294153472 wakeup. thread_pool::take() tid : 139841294153472 took a task! =============================================================== | testFunc() at thread [ 139841310938880] output [0] | =============================================================== thread_pool::take() tid : 139841310938880 wakeup. thread_pool::take() tid : 139841310938880 took a task! =============================================================== | testFunc() at thread [ 139841302546176] output [0] | =============================================================== thread_pool::take() tid : 139841302546176 wakeup. thread_pool::take() tid : 139841302546176 took a task! =============================================================== | testFunc() at thread [ 139841294153472] output [0] | =============================================================== thread_pool::take() tid : 139841294153472 wait. =============================================================== | testFunc() at thread [ 139841310938880] output [0] | =============================================================== thread_pool::take() tid : 139841310938880 wait. =============================================================== | testFunc() at thread [ 139841302546176] output [0] | =============================================================== thread_pool::take() tid : 139841302546176 wait. (键入回车) thread_pool::stop() stop. thread_pool::stop() notifyAll(). thread_pool::take() tid : 139841294153472 wakeup. thread_pool::threadLoop() tid : 139841294153472 exit. thread_pool::take() tid : 139841310938880 wakeup. thread_pool::threadLoop() tid : 139841310938880 exit. thread_pool::take() tid : 139841302546176 wakeup. thread_pool::threadLoop() tid : 139841302546176 exit.