classic mac os: comment out MwTimeSleep because I realize that wouldn't work either way
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
5ca241ad0a
commit
0e96b715b0
1 changed files with 12 additions and 12 deletions
|
|
@ -33,12 +33,12 @@ void MwTimeSleep(int ms) {
|
|||
nanosleep(&ts, NULL);
|
||||
}
|
||||
#elif defined(CLASSIC_MAC_OS)
|
||||
static TMTask tm;
|
||||
static int timer;
|
||||
void timerUpdateFunc(void) {
|
||||
timer += 1;
|
||||
PrimeTime((QElemPtr)&tm, 1);
|
||||
};
|
||||
// static TMTask tm;
|
||||
// static int timer;
|
||||
// void timerUpdateFunc(void) {
|
||||
// timer += 1;
|
||||
// PrimeTime((QElemPtr)&tm, 1);
|
||||
// };
|
||||
|
||||
long MwTimeGetTick(void) {
|
||||
UnsignedWide h;
|
||||
|
|
@ -46,14 +46,14 @@ long MwTimeGetTick(void) {
|
|||
return h.lo;
|
||||
}
|
||||
void MwTimeSleep(int ms) {
|
||||
tm.tmAddr = NewTimerProc(timerUpdateFunc);
|
||||
tm.tmWakeUp = 0;
|
||||
tm.tmReserved = 0;
|
||||
// tm.tmAddr = NewTimerProc(timerUpdateFunc);
|
||||
// tm.tmWakeUp = 0;
|
||||
// tm.tmReserved = 0;
|
||||
|
||||
InsTime((QElemPtr)&tm);
|
||||
PrimeTime((QElemPtr)&tm, 1);
|
||||
// InsTime((QElemPtr)&tm);
|
||||
// PrimeTime((QElemPtr)&tm, 1);
|
||||
|
||||
DisposeTimerUPP(tm.tmAddr);
|
||||
// DisposeTimerUPP(tm.tmAddr);
|
||||
}
|
||||
#elif defined(__unix__)
|
||||
long MwTimeGetTick(void) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue