C-Thread-Pool icon indicating copy to clipboard operation
C-Thread-Pool copied to clipboard

why need pause and resume?

Open dpingk opened this issue 6 years ago • 0 comments

Hi, I see those two api in tests, and if I add work from client requests through TCP like below, (implemented in main thread) switch ... { case 1: thpool_add_work(thpool, (void *)get_time, (void *)local); case 2: thpool_add_work(thpool, (void *)get_file, (void *)local);

In this case, do I need paUse and resume to surround those add works? If these needed, how to ? and sleep also needed too ?

dpingk avatar Sep 20 '18 05:09 dpingk