Skip to content
Snippets Groups Projects
Commit 0016e80a authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Vladimir Davydov
Browse files

fiber_cond: add static initializer

Similar to RLIST_HEAD_INITIALIZER and RLIST_HEAD. Needed to initialize
a global fiber_cond variable without calling fiber_cond_create.

NO_DOC=internal
NO_TEST=internal
NO_CHANGELOG=internal
parent 44fadfc4
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ struct fiber_cond {
struct rlist waiters;
};
#define FIBER_COND_INITIALIZER(name) { RLIST_HEAD_INITIALIZER(name.waiters) }
#define FIBER_COND(name) struct fiber_cond name = FIBER_COND_INITIALIZER(name)
/**
* Initialize the fiber condition variable.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment