Home
last modified time | relevance | path

Searched refs:pmbox (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.4.0/tests/kernel/mbox/mbox_api/src/
Dtest_mbox_api.c74 struct k_mbox *pmbox = p2; in mbox_get_waiting_thread() local
103 zassert_true(k_mbox_get(pmbox, &mmsg, NULL, K_FOREVER) == 0, in mbox_get_waiting_thread()
108 static void tmbox_put(struct k_mbox *pmbox) in tmbox_put() argument
119 k_mbox_put(pmbox, &mmsg, K_FOREVER); in tmbox_put()
133 k_mbox_put(pmbox, &mmsg, K_FOREVER); in tmbox_put()
141 k_mbox_async_put(pmbox, &mmsg, &sync_sema); in tmbox_put()
149 zassert_true(k_mbox_put(pmbox, in tmbox_put()
160 k_mbox_put(pmbox, &mmsg, TIMEOUT); in tmbox_put()
169 zassert_true(k_mbox_put(pmbox, &mmsg, K_FOREVER) == 0); in tmbox_put()
177 k_mbox_async_put(pmbox, &mmsg, NULL); in tmbox_put()
[all …]
/Zephyr-Core-3.4.0/tests/kernel/mbox/mbox_usage/src/
Dmain.c32 static void msg_sender(struct k_mbox *pmbox, k_timeout_t timeout) in msg_sender() argument
45 k_mbox_put(pmbox, &mmsg, K_FOREVER); in msg_sender()
47 k_mbox_put(pmbox, &mmsg, K_NO_WAIT); in msg_sender()
49 k_mbox_put(pmbox, &mmsg, timeout); in msg_sender()
57 static void msg_receiver(struct k_mbox *pmbox, k_tid_t thd_id, in msg_receiver() argument
68 zassert_true(k_mbox_get(pmbox, &mmsg, in msg_receiver()
71 zassert_false(k_mbox_get(pmbox, &mmsg, in msg_receiver()
74 zassert_true(k_mbox_get(pmbox, &mmsg, in msg_receiver()