home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!apple!apple!taligent!keith@taligent.com
- From: keith@taligent.com (Keith Rollin)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: vblCount and Macintosh Programming Secrets
- Message-ID: <Bt3p2H.Ap6@taligent.com>
- Date: 16 Aug 92 23:54:17 GMT
- References: <Bt1wyG.MnL@grayhawk.rent.com>
- Sender: usenet@taligent.com (More Bytes Than You Can Read)
- Organization: Taligent
- Lines: 26
-
- In article <Bt1wyG.MnL@grayhawk.rent.com>, rich@grayhawk.rent.com (Richard
- Harms) writes:
- >
- > On page 501 is the code for a subroutine called MySpinner... In it, the
- > VBLTask field vblCount is reset to a non-zero value only if CrsrBusy is
- > equal to zero. My question is, if CrsrBusy is a non-zero value, and the
- > vblCount field isn't reset to something non-zero, won't that result in
- > the VBL task failing to ever execute again?
- >
- > From MPW 411:
- > >The task must then reset vblCount, or its entry will be removed
- > >from the queue after it has been executed.
- >
-
- Good eye! How does the following look to you:
-
- oldA5 = SetA5(myTaskPtr->A5);
- if (CrsrBusy == 0)
- SpinCursor(32);
- myTaskPtr->theTask.vblCount = pDesiredCount;
- (void) Seta5(oldA5);
-
- --
- Keith Rollin
- Phantom Programmer
- Taligent, Inc.
-