Commit 86d11443 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

lock: Add cr_wait_init helper

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 793f3aa9
......@@ -11,6 +11,15 @@
#include "syscall.h"
#include "util.h"
/*
* Init futex @v value
*/
static always_inline void cr_wait_init(u32 *v)
{
u32 val = 0;
atomic_set(v, val);
}
/*
* Set futex @v value to @val and wake up all waiters
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment