Searched refs:tid2 (Results 1 – 12 of 12) sorted by relevance
/nrf52832-nimble/rt-thread/examples/kernel/ |
H A D | thread_resume.c | 12 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 D | thread_delete.c | 14 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 D | thread_suspend.c | 11 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 D | thread_dynamic_simple.c | 11 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 D | thread_yield.c | 9 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 D | mbox_simple.c | 12 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 D | mbox_send_wait.c | 12 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 D | mutex_simple.c | 9 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 D | event_simple.c | 15 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 D | memp_simple.c | 16 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 D | messageq_simple.c | 12 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 D | ChangeLog.md | 929 * thread_delete.c - tc线程的延时应该比tid2的延时长,保证其测试过程中正常运行
|