2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
13 * Wait until "cond" gets true or timeout (in ms).
15 #define wait_cond_interruptible_timeout(_cond, _timeout) \
17 int __ret = 0, __pollret; \
18 int __timeout = _timeout; \
23 if (__timeout <= 0) { \
27 __pollret = poll(NULL, 0, 10); /* wait 10ms */ \
28 if (__pollret < 0) { \
38 #endif /* _UST_WAIT_H */
This page took 0.030076 seconds and 4 git commands to generate.