historical/gems-kernel.git/source/sticky.h

20 lines
237 B
C
Raw Normal View History

2024-01-16 11:20:27 -06:00
int brk = 0;
int ghzepoch = 0; //nanoseconds
void unstick() {
brk = 0;
}
void delay(unsigned int s) {
int g = s + ghzepoch;
while (g > ghzepoch); {
//do nothing
}
}
void stick() {
brk = 1;
while (brk < 0) {
//do nothing
}
}