spinlock.h
来自「类unix x86平台的简单操作系统」· C头文件 代码 · 共 11 行
H
11 行
// Mutual exclusion lock.struct spinlock { uint locked; // Is the lock held? // For debugging: char *name; // Name of lock. int cpu; // The number of the cpu holding the lock. uint pcs[10]; // The call stack (an array of program counters) // that locked the lock.};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?