liushuai
liushuai
在发送大量数据的时候,协程会直接阻塞,而不会切换协程。sys/socket和asio都有这个问题: 复现步骤: **sample4_echo:** https://github.com/yyzybb537/libgo/blob/781720f7ca6cf0de2d82e5a791a9c775cbad5aa3/tutorial/sample4_echo.cpp#L78-L82 修改buf部分: ``` const int len = 1024*1024*10; // 10M char *buf = new char[len]; ``` 将会阻塞在write。 **sample5_asio:** https://github.com/yyzybb537/libgo/blob/781720f7ca6cf0de2d82e5a791a9c775cbad5aa3/tutorial/sample5_asio.cpp#L72-L73 修改为: ``` std::string msg = "1234"; msg.resize(1024*1024*10); ```...
#9 的这次提交没有考虑到一种特殊情况:当两次log间隔未能达到kFlushInterval,最后的这个log可能只能等到下次被flush,或者等stop后。 现在每1s检测一下,就比较完善了。速度也没影响。
### Description of the feature or fix See: https://github.com/lvgl/lvgl/pull/3586 ### Checkpoints - [x] Follow the [styling guide](https://github.com/lvgl/lvgl/blob/master/docs/CODING_STYLE.md) - [x] Run `code-format.py` from the `scripts` folder. [astyle](http://astyle.sourceforge.net/install.html) needs to be installed....
tested on macOS13 and Ubuntu22
I am very eager for ASIO to be used in combine with other event loops. For instance, when using Node.js (libuv), I also want to use some ASIO-based libraries. To...
协程共享栈缺陷
BUG: 协程栈上数据的地址传递给其他协程处理时,可能出现错误。 边界条件:协程无法独占共享栈时(co_stack_num满)。 TestCase: ``` #include "co/co.h" int main(int argc, char **argv) { flag::init(argc, argv); FLG_cout = true; flag::set_value("co_sched_num", "1"); flag::set_value("co_stack_num", "1"); // flag::set_value("co_sched_log", "true"); go([&] { char buf[] =...
Same to #418, some projects use a modulus size larger than 4096. And the source code may be written in C++ or Java. There are still some issues when using...
improve performence and keep compatible.