diff --git a/source/libs/sync/test/syncRefTest.cpp b/source/libs/sync/test/syncRefTest.cpp index e5606af14ff059908a7d19e55a7c98241d757072..1a75ffa75f4daed6d47195065540524e6d4b367f 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;