提交 cea0a784 编写于 作者: D dapan1121

fix: fix lock issue

上级 35e059af
...@@ -44,7 +44,7 @@ void taosWLockLatch(SRWLatch *pLatch) { ...@@ -44,7 +44,7 @@ void taosWLockLatch(SRWLatch *pLatch) {
nLoops = 0; nLoops = 0;
while (1) { while (1) {
oLatch = atomic_load_32(pLatch); oLatch = atomic_load_32(pLatch);
if (0 == oLatch) break; if (oLatch == TD_RWLATCH_WRITE_FLAG) break;
nLoops++; nLoops++;
if (nLoops > 1000) { if (nLoops > 1000) {
sched_yield(); sched_yield();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册