bear_with_code
bear_with_code
My opinion: submit() is called in the main thread, but work_thread() is running in the sub-thread, so their thread_local variable "local_work_queue" are different. Therefore, the condition if(local_work_queue) is always false.
Hi Tessil. I tested the same code on both Windows and Linux systems. On the Linux system, deserialization works correctly, but on Windows, it throws an exception (**ios_base::failbit set: iostream...
Thank you, the program is now working correctly.