implement rt_notify_init
This commit is contained in:
parent
04fda23858
commit
bfd63dca94
|
@ -1,5 +1,11 @@
|
|||
#include <rt/notify.h>
|
||||
|
||||
void rt_notify_init(struct rt_notify *note, uint32_t value)
|
||||
{
|
||||
rt_atomic_store(¬e->value, value, RT_ATOMIC_RELAXED);
|
||||
rt_sem_init_binary(¬e->sem);
|
||||
}
|
||||
|
||||
void rt_notify_post(struct rt_notify *note)
|
||||
{
|
||||
rt_sem_post(¬e->sem);
|
||||
|
|
Loading…
Reference in New Issue