Home
last modified time | relevance | path

Searched refs:tid2 (Results 1 – 12 of 12) sorted by relevance

/nrf52832-nimble/rt-thread/examples/kernel/
H A Dthread_resume.c12 static rt_thread_t tid2 = RT_NULL; variable
34 if (tid == tid2) in thread_cleanup()
71 tid2 = rt_thread_create("thread", in thread_resume_init()
74 if (tid2 != RT_NULL) in thread_resume_init()
76 tid2->cleanup = thread_cleanup; in thread_resume_init()
77 rt_thread_startup(tid2); in thread_resume_init()
94 if (tid2 != RT_NULL && tid2->stat != RT_THREAD_CLOSE) in _tc_cleanup()
95 rt_thread_delete(tid2); in _tc_cleanup()
H A Dthread_delete.c14 static rt_thread_t tid1 = RT_NULL, tid2 = RT_NULL; variable
66 if (tid != tid2) in thread2_cleanup()
72 tid2 = RT_NULL; in thread2_cleanup()
92 tid2 = rt_thread_create("t2", /* 线程1的名称是t2 */ in thread_delete_init()
95 if (tid2 != RT_NULL) /* 如果获得线程控制块,启动这个线程 */ in thread_delete_init()
97 tid2->cleanup = thread2_cleanup; in thread_delete_init()
98 rt_thread_startup(tid2); in thread_delete_init()
118 if (tid2 != RT_NULL) in _tc_cleanup()
120 rt_kprintf("tid2 is %p, should be NULL\n", tid2); in _tc_cleanup()
H A Dthread_suspend.c11 static rt_thread_t tid2 = RT_NULL; variable
37 tid2 = RT_NULL; in thread2_entry()
52 tid2 = rt_thread_create("thread", in thread_suspend_init()
55 if (tid2 != RT_NULL) in thread_suspend_init()
56 rt_thread_startup(tid2); in thread_suspend_init()
72 if (tid2 != RT_NULL && tid2->stat != RT_THREAD_CLOSE) in _tc_cleanup()
73 rt_thread_delete(tid2); in _tc_cleanup()
H A Dthread_dynamic_simple.c11 static rt_thread_t tid2 = RT_NULL; variable
40 tid2 = rt_thread_create("t2", in thread_dynamic_simple_init()
43 if (tid2 != RT_NULL) in thread_dynamic_simple_init()
44 rt_thread_startup(tid2); in thread_dynamic_simple_init()
60 if (tid2 != RT_NULL && tid2->stat != RT_THREAD_CLOSE) in _tc_cleanup()
61 rt_thread_delete(tid2); in _tc_cleanup()
H A Dthread_yield.c9 static rt_thread_t tid2 = RT_NULL; variable
52 tid2 = rt_thread_create("thread", in thread_yield_init()
55 if (tid2 != RT_NULL) in thread_yield_init()
56 rt_thread_startup(tid2); in thread_yield_init()
72 if (tid2 != RT_NULL && tid2->stat != RT_THREAD_CLOSE) in _tc_cleanup()
73 rt_thread_delete(tid2); in _tc_cleanup()
H A Dmbox_simple.c12 static rt_thread_t tid2 = RT_NULL; variable
86 tid2 = rt_thread_create("t2", in mbox_simple_init()
89 if (tid2 != RT_NULL) in mbox_simple_init()
90 rt_thread_startup(tid2); in mbox_simple_init()
106 if (tid2 != RT_NULL && tid2->stat != RT_THREAD_CLOSE) in _tc_cleanup()
107 rt_thread_delete(tid2); in _tc_cleanup()
H A Dmbox_send_wait.c12 static rt_thread_t tid2 = RT_NULL; variable
88 tid2 = rt_thread_create("t2", in mbox_send_wait_init()
91 if (tid2 != RT_NULL) in mbox_send_wait_init()
92 rt_thread_startup(tid2); in mbox_send_wait_init()
108 if (tid2 != RT_NULL && tid2->stat != RT_THREAD_CLOSE) in _tc_cleanup()
109 rt_thread_delete(tid2); in _tc_cleanup()
H A Dmutex_simple.c9 static rt_thread_t tid2 = RT_NULL; variable
22 if (tid2->current_priority != tid3->current_priority) in thread1_entry()
102 tid2 = rt_thread_create("t2", in mutex_simple_init()
105 if (tid2 != RT_NULL) in mutex_simple_init()
106 rt_thread_startup(tid2); in mutex_simple_init()
131 if (tid2 != RT_NULL && tid2->stat != RT_THREAD_CLOSE) in _tc_cleanup()
132 rt_thread_delete(tid2); in _tc_cleanup()
H A Devent_simple.c15 static rt_thread_t tid2 = RT_NULL; variable
90 tid2 = rt_thread_create("t2", in event_simple_init()
93 if (tid2 != RT_NULL) in event_simple_init()
94 rt_thread_startup(tid2); in event_simple_init()
119 if (tid2 != RT_NULL && tid2->stat != RT_THREAD_CLOSE) in _tc_cleanup()
120 rt_thread_delete(tid2); in _tc_cleanup()
H A Dmemp_simple.c16 static rt_thread_t tid2 = RT_NULL; variable
89 tid2 = rt_thread_create("t2", in mempool_simple_init()
92 if (tid2 != RT_NULL) in mempool_simple_init()
93 rt_thread_startup(tid2); in mempool_simple_init()
109 if (tid2 != RT_NULL && tid2->stat != RT_THREAD_CLOSE) in _tc_cleanup()
110 rt_thread_delete(tid2); in _tc_cleanup()
H A Dmessageq_simple.c12 static rt_thread_t tid2 = RT_NULL; variable
104 tid2 = rt_thread_create("t2", in messageq_simple_init()
107 if (tid2 != RT_NULL) in messageq_simple_init()
108 rt_thread_startup(tid2); in messageq_simple_init()
133 if (tid2 != RT_NULL && tid2->stat != RT_THREAD_CLOSE) in _tc_cleanup()
134 rt_thread_delete(tid2); in _tc_cleanup()
/nrf52832-nimble/rt-thread/
H A DChangeLog.md929 * thread_delete.c - tc线程的延时应该比tid2的延时长,保证其测试过程中正常运行