bear_with_code

Results 5 issues of bear_with_code

In the function worker_thread(), "local_work_queue" call reset() and then it's not NULL. However, in the function submit(), this variable is always nullptr, so the tasks are pushed into global queue....

**“往线程池添加任务会增加任务队列的竞争,lock-free 队列可以避免这点但存在乒乓缓存的问题。为此需要把任务队列拆分为线程独立的本地队列和全局队列,当线程队列无任务时就去全局队列取任务”** 在这一小节中,submit函数中的local_queue永远是nullptr,原因如下: local_queue指针在worker_thread中赋值,woker_thread运行在子线程,而submit函数是在main线程中调用的,二者不是在同一线程,所以二者的local_queue根本不是同一个。 所以这段代码无法达到想要的目的。

Why record episode reward in this way? This makes the reward curve look nice but in fact it is not. Why not just record the value of `ep_r`? ``` if...

I tested the serialize and deserialize example with more key-values (no boost version), but it deserialize failed. `const tsl::htrie_map map = {{"one", 1}, {"two", 2}, {"three", 3}, {"four", 4}};` ```...