Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 16 of 16) sorted by relevance

/examples/libc/
A Dex6.c27 pthread_t thread; in libc_ex6() local
30 status = pthread_create(&thread, NULL, test_thread, NULL); in libc_ex6()
39 pthread_join(thread, NULL); in libc_ex6()
A Dex7.c80 pthread_t thread; in libc_ex7() local
84 status = pthread_create(&thread, NULL, test_thread, (void*) (count in libc_ex7()
/examples/utest/testcases/kernel/
A Datomic_tc.c137 rt_thread_t thread; in test_atomic_add() local
143thread = rt_thread_create("t1", ture_entry, RT_NULL, THREAD_STACKSIZE, THREAD_PRIORITY, THREAD_TIM… in test_atomic_add()
144 rt_thread_startup(thread); in test_atomic_add()
145thread = rt_thread_create("t2", ture_entry, RT_NULL, THREAD_STACKSIZE, THREAD_PRIORITY, THREAD_TIM… in test_atomic_add()
146 rt_thread_startup(thread); in test_atomic_add()
147thread = rt_thread_create("t3", ture_entry, RT_NULL, THREAD_STACKSIZE, THREAD_PRIORITY, THREAD_TIM… in test_atomic_add()
148 rt_thread_startup(thread); in test_atomic_add()
A Dhooklist_tc.c20 static void thread_inited_hooker1(rt_thread_t thread) in thread_inited_hooker1() argument
27 static void thread_inited_hooker2(rt_thread_t thread) in thread_inited_hooker2() argument
A Dobject_tc.c133 rt_thread_t thread = rt_thread_create(name, RT_NULL, RT_NULL, 1024, 20, 10); in test_object_find_operations() local
134 uassert_not_null(thread); in test_object_find_operations()
137 uassert_ptr_equal(found_thread, thread); in test_object_find_operations()
139 rt_thread_delete(thread); in test_object_find_operations()
A DKconfig60 bool "thread test"
A Dsched_sem_tc.c29 #error the thread priority should at least be greater than idle
A Dmem_tc.c22 rt_uint8_t thread[8]; /**< thread name */ member
24 rt_uint8_t thread[4]; /**< thread name */ member
/examples/utest/testcases/cpp11/
A Dthread_tc.cpp26 std::thread t1(func); in test_thread()
34 std::thread t2(func); in test_thread()
A DKconfig4 bool "Cpp11 thread test"
/examples/utest/testcases/posix/pthread_h/functions/pthread_cond_broadcast/
A Dpthread_cond_broadcast_2-1_tc.c77 pthread_t thread[THREAD_NUM]; in posix_testcase() local
89 if (pthread_create(&thread[i], NULL, thr_func, NULL) != 0) { in posix_testcase()
120 pthread_cancel(thread[i]); in posix_testcase()
128 if (pthread_join(thread[i], NULL) != 0) { in posix_testcase()
/examples/utest/testcases/lwp/
A Dcondvar_broadcast_tc.c75 struct rt_thread thread[THREAD_NUM]; in condvar_broadcast_tc() local
79 if (rt_thread_init(&thread[i], "utest", thr_func, RT_NULL, in condvar_broadcast_tc()
85 rt_thread_startup(&thread[i]); in condvar_broadcast_tc()
/examples/test/
A Drbb_test.c82 rt_thread_t thread; in rbb_test() local
309 thread = rt_thread_create("rbb_put", put_thread, rbb, 1024, 10, 25); in rbb_test()
310 if (thread) in rbb_test()
312 rt_thread_startup(thread); in rbb_test()
315 thread = rt_thread_create("rbb_get", get_thread, rbb, 1024, 10, 25); in rbb_test()
316 if (thread) in rbb_test()
318 rt_thread_startup(thread); in rbb_test()
/examples/utest/
A DREADME.md18 …例。测试用例的编写方法参考文档中心[《utest 测试框架》章节](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-t…
/examples/utest/testcases/kernel/smp/
A DKconfig4 bool "smp affinity and thread priority test1"
/examples/utest/testcases/posix/pthread_h/definitions/
A Dpthread_h.c53 int (*test_pthread_getcpuclockid)(pthread_t thread, clockid_t *clock_id);
81 int (*test_pthread_setschedprio)(pthread_t thread, int prio);

Completed in 26 milliseconds