Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 13 of 13) sorted by relevance

/examples/libc/
A Dsem.c35 pthread_t tid; in test_thread() local
45 if(pthread_create(&tid, 0, &other_thread, 0)!=0) in test_thread()
49 printf("created OtherThread=%x\n", tid); in test_thread()
65 rt_thread_t tid; in libc_sem() local
67 tid = rt_thread_create("semtest", test_thread, RT_NULL, in libc_sem()
69 if (tid != RT_NULL) in libc_sem()
71 rt_thread_startup(tid); in libc_sem()
A Dex3.c66 pthread_t tid; in print_it() local
69 tid = pthread_self(); in print_it()
72 printf("Thread %lx was canceled on its %d try.\n", tid, *try); in print_it()
81 pthread_t tid; in search() local
84 tid = pthread_self(); in search()
95 srand((int)tid); in search()
137 printf("Thread %lx found the number!\n", tid); in search()
141 if (threads[j] != tid) pthread_cancel(threads[j]); in search()
A Dtermios_test.c324 rt_thread_t tid; in termios_test() local
335 tid = rt_thread_create("termtest", in termios_test()
339 if (tid != RT_NULL) in termios_test()
340 rt_thread_startup(tid); in termios_test()
/examples/pm/
A Dwakeup_app.c62 rt_thread_t tid; in wakeup_app() local
67 tid = rt_thread_create("wakeup_app", wakeup_app_entry, RT_NULL, in wakeup_app()
69 RT_ASSERT(tid != RT_NULL); in wakeup_app()
71 rt_thread_startup(tid); in wakeup_app()
/examples/test/
A Dringbuffer_test.c82 rt_thread_t tid; in ringbuffer_sample() local
90 tid = rt_thread_create("consumer", consumer_thread_entry, RT_NULL, in ringbuffer_sample()
92 if (tid == RT_NULL) in ringbuffer_sample()
96 rt_thread_startup(tid); in ringbuffer_sample()
103 rt_thread_delete(tid); in ringbuffer_sample()
/examples/utest/testcases/kernel/
A Dmutex_tc.c104 if (RT_NULL == tid) in test_static_mutex_take()
111 rt_thread_startup(tid); in test_static_mutex_take()
173 if (RT_NULL == tid) in test_static_mutex_release()
180 rt_thread_startup(tid); in test_static_mutex_release()
233 if (RT_NULL == tid) in test_static_mutex_trytake()
240 rt_thread_startup(tid); in test_static_mutex_trytake()
444 if (RT_NULL == tid) in test_dynamic_mutex_take()
451 rt_thread_startup(tid); in test_dynamic_mutex_take()
512 if (RT_NULL == tid) in test_dynamic_mutex_release()
571 if (RT_NULL == tid) in test_dynamic_mutex_trytake()
[all …]
A Dthread_tc.c590 rt_thread_t tid; in test_thread_yield_entry() local
594 tid = rt_thread_create("inc", test_thread_yield_inc_entry, RT_NULL, in test_thread_yield_entry()
596 if (!tid) in test_thread_yield_entry()
602 ret_startup = rt_thread_startup(tid); in test_thread_yield_entry()
630 rt_thread_t tid; in test_thread_yield_nosmp() local
634 tid = rt_thread_create("chkcnt", test_thread_yield_entry, RT_NULL, in test_thread_yield_nosmp()
636 if (!tid) in test_thread_yield_nosmp()
642 ret_startup = rt_thread_startup(tid); in test_thread_yield_nosmp()
/examples/network/
A Dudpclient.c119 rt_thread_t tid; in udpclient_test() local
166 tid = rt_thread_create("udp_client", in udpclient_test()
169 if (tid != RT_NULL) in udpclient_test()
171 rt_thread_startup(tid); in udpclient_test()
A Dudpserver.c163 rt_thread_t tid; in udpserver_test() local
198 tid = rt_thread_create("udp_serv", in udpserver_test()
201 if (tid != RT_NULL) in udpserver_test()
203 rt_thread_startup(tid); in udpserver_test()
A Dtcpclient.c208 rt_thread_t tid; in tcpclient_test() local
250 tid = rt_thread_create("tcp_client", in tcpclient_test()
253 if (tid != RT_NULL) in tcpclient_test()
255 rt_thread_startup(tid); in tcpclient_test()
A Dtcpserver.c245 rt_thread_t tid; in tcpserver_test() local
280 tid = rt_thread_create("tcp_serv", in tcpserver_test()
283 if (tid != RT_NULL) in tcpserver_test()
285 rt_thread_startup(tid); in tcpserver_test()
/examples/rt-link/
A Drtlink_example.c121 rt_thread_t tid; in create_thead_to_test_speed() local
125 tid = rt_thread_create(tid_name, rt_link_speed_test, RT_NULL, 1024, 20, 10); in create_thead_to_test_speed()
126 if (tid) in create_thead_to_test_speed()
128 rt_thread_startup(tid); in create_thead_to_test_speed()
A Drtlink_dev_example.c205 rt_thread_t tid = rt_thread_create(RTLINK02, listen_thread, RT_NULL, 1024, 21, 20); in rtlink_fselect() local
206 if (tid) in rtlink_fselect()
208 rt_thread_startup(tid); in rtlink_fselect()
304 rt_thread_t tid; in create_thead_to_test_speed() local
308 tid = rt_thread_create(tid_name, rt_link_speed_test, RT_NULL, 1024, 20, 10); in create_thead_to_test_speed()
309 rt_thread_startup(tid); in create_thead_to_test_speed()

Completed in 13 milliseconds