/* a thread pends on a lifo then times out  */
void test_thread_pend_and_timeout(void *p1, void *p2, void *p3)
/* a thread pends on a lifo then times out  */
void test_thread_pend_and_timeout(void *p1, void *p2, void *p3)
{
	struct timeout_order_data *d = (struct timeout_order_data *)p1;
	uint32_t start_time;
	void *packet;
	start_time = k_cycle_get_32();
	packet = k_lifo_get(d->klifo, K_MSEC(d->timeout));
	zassert_true(packet == NULL);
	zassert_true(is_timeout_in_range(start_time, d->timeout));
	k_lifo_put(&timeout_order_lifo, d);
}