Lines Matching refs:tid

18 	struct cv2_thread *tid = (struct cv2_thread *)thread_id;  in osThreadFlagsSet()  local
26 tid->signal_results |= flags; in osThreadFlagsSet()
29 k_poll_signal_raise(&tid->poll_signal, DONT_CARE); in osThreadFlagsSet()
31 return tid->signal_results; in osThreadFlagsSet()
39 struct cv2_thread *tid; in osThreadFlagsGet() local
45 tid = (struct cv2_thread *)osThreadGetId(); in osThreadFlagsGet()
46 if (tid == NULL) { in osThreadFlagsGet()
49 return tid->signal_results; in osThreadFlagsGet()
58 struct cv2_thread *tid; in osThreadFlagsClear() local
69 tid = (struct cv2_thread *)osThreadGetId(); in osThreadFlagsClear()
70 if (tid == NULL) { in osThreadFlagsClear()
75 sig = tid->signal_results; in osThreadFlagsClear()
76 tid->signal_results &= ~(flags); in osThreadFlagsClear()
88 struct cv2_thread *tid; in osThreadFlagsWait() local
102 tid = (struct cv2_thread *)osThreadGetId(); in osThreadFlagsWait()
103 if (tid == NULL) { in osThreadFlagsWait()
113 retval = k_poll(&tid->poll_event, 1, K_NO_WAIT); in osThreadFlagsWait()
116 retval = k_poll(&tid->poll_event, 1, K_FOREVER); in osThreadFlagsWait()
119 retval = k_poll(&tid->poll_event, 1, in osThreadFlagsWait()
133 __ASSERT(tid->poll_event.state == K_POLL_STATE_SIGNALED, in osThreadFlagsWait()
135 __ASSERT(tid->poll_event.signal->signaled == 1U, in osThreadFlagsWait()
139 tid->poll_event.signal->signaled = 0U; in osThreadFlagsWait()
140 tid->poll_event.state = K_POLL_STATE_NOT_READY; in osThreadFlagsWait()
146 if ((tid->signal_results & flags) == flags) { in osThreadFlagsWait()
172 sig = tid->signal_results; in osThreadFlagsWait()
177 tid->signal_results &= ~(flags); in osThreadFlagsWait()