提交 25ad20cf 编写于 作者: Z zhihaop

fix: pthread_mutex_timedlock is invalid in C99

上级 097f168a
......@@ -290,11 +290,8 @@ inline static void dispatcherSleepUntil(SAsyncBulkWriteDispatcher* dispatcher, s
if (durationMillis(current, timeout) <= 0) {
return;
}
if (pthread_mutex_timedlock(&dispatcher->mutex, &timeout)) {
return;
}
pthread_mutex_lock(&dispatcher->mutex);
while (true) {
// notified by dispatcherShutdown(...).
if (atomic_load_8(&dispatcher->shutdown)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册