From b8a13daf9f808b2cb83f889f58cc6602c04b98f4 Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Mon, 21 Mar 2022 16:56:37 +0800 Subject: [PATCH] sync refactor --- source/libs/sync/test/syncRefTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/sync/test/syncRefTest.cpp b/source/libs/sync/test/syncRefTest.cpp index e5606af14f..1a75ffa75f 100644 --- a/source/libs/sync/test/syncRefTest.cpp +++ b/source/libs/sync/test/syncRefTest.cpp @@ -114,8 +114,8 @@ int main() { assert(rid > 0); for (int i = 0; i < 20; ++i) { - pthread_t tid; - pthread_create(&tid, NULL, func, (void *)rid); + TdThread tid; + taosThreadCreate(&tid, NULL, func, (void *)rid); } int32_t ms = taosRand() % 10000;