Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebb795f9 authored by Bernhard Thoben's avatar Bernhard Thoben
Browse files

include: Added a missing function declaration.

Change-Id: I02630ae3f1b027866632e220ae91b963903a4ea6
parent e3e205bc
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -76,6 +76,18 @@ static inline void init_completion(struct completion *x)
	init_waitqueue_head(&x->wait);
}

/**
 * reinit_completion - reinitialize a completion structure
 * @x:  pointer to completion structure that is to be reinitialized
 *
 * This inline function should be used to reinitialize a completion structure so it can
 * be reused. This is especially important after complete_all() is used.
 */
static inline void reinit_completion(struct completion *x)
{
	x->done = 0;
}

extern void wait_for_completion(struct completion *);
extern void wait_for_completion_io(struct completion *);
extern int wait_for_completion_interruptible(struct completion *x);