优化cons性能

This commit is contained in:
zhangzheng
2024-11-12 23:17:01 +08:00
parent 2f1ed5ae88
commit fb5de6c4f4
15 changed files with 79 additions and 25 deletions

View File

@@ -59,7 +59,7 @@ again:
rlen = cons_read((uint8_t *)data, len);
if (rlen <= 0)
{
u_sleep_ms(5);
u_sema_down(SEMA_PROT);
goto again;
}
return rlen;