On 8/22/22 12:26, R��mi Bernon wrote:
- HANDLE stream_thread;
- CRITICAL_SECTION stream_cs;
- CONDITION_VARIABLE stream_cv;
- HANDLE callback_thread;
- CRITICAL_SECTION callback_cs;
- CONDITION_VARIABLE callback_cv;
What's the point of this change? I don't see how this is an improvement.
Like said above, the threading is wrong and we'll need more threads. The current "stream" thread, is only supposed to call the callbacks, so it's going to be named "callback_thread". And it will have nothing to do with streams.