mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-02 08:08:21 +00:00
ke: export Mutex
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ const ps = r.ps;
|
|||||||
const amd64 = @import("arch");
|
const amd64 = @import("arch");
|
||||||
const turnstile = ke.private.turnstile;
|
const turnstile = ke.private.turnstile;
|
||||||
|
|
||||||
var mtx: ke.private.mutex.Mutex = .init();
|
var mtx: ke.Mutex = .init();
|
||||||
var shared_counter: usize = 0;
|
var shared_counter: usize = 0;
|
||||||
|
|
||||||
var work_item: ex.WorkItem = undefined;
|
var work_item: ex.WorkItem = undefined;
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ pub const ExportedCpuLocal = p.cpu.ExportedCpuLocal;
|
|||||||
pub const CpuMask = p.cpu.CpuMask;
|
pub const CpuMask = p.cpu.CpuMask;
|
||||||
pub const Event = p.event.Event;
|
pub const Event = p.event.Event;
|
||||||
pub const Queue = p.queue.Queue;
|
pub const Queue = p.queue.Queue;
|
||||||
|
pub const Mutex = p.mutex.Mutex;
|
||||||
|
|
||||||
// === Exported Interfaces ===
|
// === Exported Interfaces ===
|
||||||
pub const panic = p.panic.panic;
|
pub const panic = p.panic.panic;
|
||||||
|
|||||||
Reference in New Issue
Block a user