freebsd11_network: Add mtx_sleep.
It is identical to msleep(), which is now "deprecated" in favor of it, according to the FreeBSD manpages.
This commit is contained in:
@@ -96,6 +96,7 @@ int _pause(const char *, int);
|
|||||||
#define pause(waitMessage, timeout) _pause((waitMessage), (timeout))
|
#define pause(waitMessage, timeout) _pause((waitMessage), (timeout))
|
||||||
#define tsleep(channel, priority, waitMessage, timeout) \
|
#define tsleep(channel, priority, waitMessage, timeout) \
|
||||||
msleep((channel), NULL, (priority), (waitMessage), (timeout))
|
msleep((channel), NULL, (priority), (waitMessage), (timeout))
|
||||||
|
#define mtx_sleep msleep
|
||||||
|
|
||||||
struct unrhdr;
|
struct unrhdr;
|
||||||
struct unrhdr *new_unrhdr(int low, int high, struct mtx *mutex);
|
struct unrhdr *new_unrhdr(int low, int high, struct mtx *mutex);
|
||||||
|
|||||||
Reference in New Issue
Block a user