Home
last modified time | relevance | path

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

/Zephyr-latest/tests/kernel/mbox/mbox_api/src/
Dtest_mbox_api.c73 struct k_mbox *pmbox = p2; in mbox_get_waiting_thread() local
102 zassert_true(k_mbox_get(pmbox, &mmsg, NULL, K_FOREVER) == 0, in mbox_get_waiting_thread()
107 static void tmbox_put(struct k_mbox *pmbox) in tmbox_put() argument
118 k_mbox_put(pmbox, &mmsg, K_FOREVER); in tmbox_put()
132 k_mbox_put(pmbox, &mmsg, K_FOREVER); in tmbox_put()
140 k_mbox_async_put(pmbox, &mmsg, &sync_sema); in tmbox_put()
148 zassert_true(k_mbox_put(pmbox, in tmbox_put()
159 k_mbox_put(pmbox, &mmsg, TIMEOUT); in tmbox_put()
167 zassert_true(k_mbox_put(pmbox, &mmsg, K_FOREVER) == 0); in tmbox_put()
175 k_mbox_async_put(pmbox, &mmsg, NULL); in tmbox_put()
[all …]
/Zephyr-latest/tests/kernel/mbox/mbox_usage/src/
Dmain.c32 static void msg_sender(struct k_mbox *pmbox, k_timeout_t timeout) in msg_sender() argument
46 ret = k_mbox_put(pmbox, &mmsg, timeout); in msg_sender()
54 static void msg_receiver(struct k_mbox *pmbox, k_tid_t thd_id, in msg_receiver() argument
66 ret = k_mbox_get(pmbox, &mmsg, rxdata, timeout); in msg_receiver()