mirror of
https://github.com/schoebel/mars
synced 2025-02-27 10:00:52 +00:00
infra: simplify brick_yield()
This commit is contained in:
parent
8bb352d35d
commit
e6c401d01a
9
brick.h
9
brick.h
@ -16,14 +16,7 @@
|
||||
|
||||
#define brick_msleep(msecs) _brick_msleep(msecs, false)
|
||||
extern int _brick_msleep(int msecs, bool shorten);
|
||||
|
||||
#define brick_yield() \
|
||||
({ \
|
||||
flush_signals(current); \
|
||||
schedule(); \
|
||||
})
|
||||
|
||||
|
||||
#define brick_yield() brick_msleep(0)
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user