/* Change Logs: Date Author Notes  liukang the first version  */
static void test_thread(void)
/* Change Logs: Date Author Notes  liukang the first version  */
static void test_thread(void)
{
    int count = 0;
    auto func = [&]() mutable
    {
        for (int i = 0; i < 100; ++i)
        {
            ++count;
        }
    };
    std::thread t1(func);
    t1.join();
    if (count != 100)
    {
        uassert_false(1);
    }
    std::thread t2(func);
    t2.join();
    if (count != 200)
    {
        uassert_false(1);
    }
    uassert_true(1);
}