|
Page 1 of 1
|
[ 3 posts ] |
|
| Author |
Message |
|
Air2ground
Rookie
Joined: Mon Jun 07, 2010 1:32 am Posts: 6
|
 Empty While loops
I was told that if I did not place a sleep in an empty while loop that it would sleep automatically. Is this true?
|
| Mon Jun 07, 2010 1:38 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2858 Location: Rotterdam, The Netherlands
|
 Re: Empty While loops
Is there a reason you don't want to put a Wait1Ms(1); in there? EndTimeSlice() is also an option.
- Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Mon Jun 07, 2010 9:50 am |
|
 |
|
Air2ground
Rookie
Joined: Mon Jun 07, 2010 1:32 am Posts: 6
|
 Re: Empty While loops
There isn't really a reason. I just didn't know about the command to end a time slice so I was trying to figure out how long to have it wait. I figured if it did it on its own, it would be easiest that way. Thanks for your help!
|
| Mon Jun 07, 2010 11:56 pm |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|