mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
sched.h
This commit is contained in:
parent
be5ec0fcf5
commit
a57a8ba192
@ -61,8 +61,8 @@ extern const char *PsPrioClassesNames[];
|
||||
// Re-scheduling and preemption
|
||||
// XXX atomic operations
|
||||
//
|
||||
#define PsRequestReSched() (++KeCurCPU->needReSched)
|
||||
#define PsDisablePreemption() (++KeCurCPU->preemptCount)
|
||||
#define PsRequestReSched() do { ++KeCurCPU->needReSched; } while (0)
|
||||
#define PsDisablePreemption() do { ++KeCurCPU->preemptCount; } while (0)
|
||||
#define PsEnablePreemption() do { assert(KeCurCPU->preemptCount > 0); \
|
||||
--KeCurCPU->preemptCount; } while(0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user