| /examples/libc/ |
| A D | sem.c | 35 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 D | ex3.c | 66 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 D | termios_test.c | 324 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 D | wakeup_app.c | 62 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 D | ringbuffer_test.c | 82 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 D | mutex_tc.c | 104 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 D | thread_tc.c | 590 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 D | udpclient.c | 119 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 D | udpserver.c | 163 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 D | tcpclient.c | 208 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 D | tcpserver.c | 245 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 D | rtlink_example.c | 121 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 D | rtlink_dev_example.c | 205 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()
|