forked from pyrite-dev/milsko
classic mac os: comment out MwTimeSleep because I realize that wouldn't work either way
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);
|
nanosleep(&ts, NULL);
|
||||||
}
|
}
|
||||||
#elif defined(CLASSIC_MAC_OS)
|
#elif defined(CLASSIC_MAC_OS)
|
||||||
static TMTask tm;
|
// static TMTask tm;
|
||||||
static int timer;
|
// static int timer;
|
||||||
void timerUpdateFunc(void) {
|
// void timerUpdateFunc(void) {
|
||||||
timer += 1;
|
// timer += 1;
|
||||||
PrimeTime((QElemPtr)&tm, 1);
|
// PrimeTime((QElemPtr)&tm, 1);
|
||||||
};
|
// };
|
||||||
|
|
||||||
long MwTimeGetTick(void) {
|
long MwTimeGetTick(void) {
|
||||||
UnsignedWide h;
|
UnsignedWide h;
|
||||||
|
|
@ -46,14 +46,14 @@ long MwTimeGetTick(void) {
|
||||||
return h.lo;
|
return h.lo;
|
||||||
}
|
}
|
||||||
void MwTimeSleep(int ms) {
|
void MwTimeSleep(int ms) {
|
||||||
tm.tmAddr = NewTimerProc(timerUpdateFunc);
|
// tm.tmAddr = NewTimerProc(timerUpdateFunc);
|
||||||
tm.tmWakeUp = 0;
|
// tm.tmWakeUp = 0;
|
||||||
tm.tmReserved = 0;
|
// tm.tmReserved = 0;
|
||||||
|
|
||||||
InsTime((QElemPtr)&tm);
|
// InsTime((QElemPtr)&tm);
|
||||||
PrimeTime((QElemPtr)&tm, 1);
|
// PrimeTime((QElemPtr)&tm, 1);
|
||||||
|
|
||||||
DisposeTimerUPP(tm.tmAddr);
|
// DisposeTimerUPP(tm.tmAddr);
|
||||||
}
|
}
|
||||||
#elif defined(__unix__)
|
#elif defined(__unix__)
|
||||||
long MwTimeGetTick(void) {
|
long MwTimeGetTick(void) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue