Click here to Skip to main content
15,909,747 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What the best way to sleep 1 ms Pin
Alexander M.,3-May-05 3:57
Alexander M.,3-May-05 3:57 
GeneralRe: What the best way to sleep 1 ms Pin
toxcct3-May-05 5:19
toxcct3-May-05 5:19 
GeneralRe: What the best way to sleep 1 ms Pin
namaskaaram3-May-05 18:03
namaskaaram3-May-05 18:03 
AnswerRe: What the best way to sleep 1 ms Pin
James R. Twine3-May-05 3:35
James R. Twine3-May-05 3:35 
GeneralRe: What the best way to sleep 1 ms Pin
Tim Smith3-May-05 3:37
Tim Smith3-May-05 3:37 
GeneralRe: What the best way to sleep 1 ms Pin
toxcct3-May-05 5:21
toxcct3-May-05 5:21 
GeneralRe: What the best way to sleep 1 ms Pin
James R. Twine3-May-05 6:23
James R. Twine3-May-05 6:23 
GeneralRe: What the best way to sleep 1 ms Pin
Tim Smith3-May-05 17:43
Tim Smith3-May-05 17:43 
Yes. I have been doing process control and industrial automation for many years. I have worked on my embedded processor systems (not just WinCE) and have written many device drivers for different hardware platforms (Z-80 using CPM, 68k running PDOS(?), 386 using only god knows what).

Doing anything in a tight loop testing any type of flag without resolving to a kernel waitable object is a bad idea. It will lock other applications out of the CPU. Even spinlocks will only loop for a very limited amount of time prior to resorting to a kernel object.

I would question the overall design if someone needed to do such a thing. There are cases where that level of timing is needed, but as already stated user mode isn't a good place to do such things. Thus, even if he could get it to work, it wouldn't be reliable in the real world.


Tim Smith

I'm going to patent thought. I have yet to see any prior art.
AnswerRe: What the best way to sleep 1 ms Pin
Abu Mami3-May-05 6:20
Abu Mami3-May-05 6:20 
GeneralWater-wall Pin
DinaMazor3-May-05 1:19
DinaMazor3-May-05 1:19 
GeneralRe: Water-wall Pin
QuiJohn3-May-05 2:01
QuiJohn3-May-05 2:01 
GeneralRe: Water-wall Pin
Blake Miller3-May-05 7:38
Blake Miller3-May-05 7:38 
Generalhide from application list Pin
3-May-05 0:42
suss3-May-05 0:42 
GeneralRe: hide from application list Pin
ThatsAlok3-May-05 1:00
ThatsAlok3-May-05 1:00 
GeneralCan't compile function template on VC7.1 Pin
Teerayoot2-May-05 23:48
Teerayoot2-May-05 23:48 
GeneralRe: Can't compile function template on VC7.1 Pin
ThatsAlok2-May-05 23:59
ThatsAlok2-May-05 23:59 
GeneralRe: Can't compile function template on VC7.1 Pin
Rahim Rattani3-May-05 0:25
Rahim Rattani3-May-05 0:25 
GeneralRe: Can't compile function template on VC7.1 Pin
Teerayoot3-May-05 2:07
Teerayoot3-May-05 2:07 
QuestionHow to do this???? Pin
eli150219792-May-05 23:41
eli150219792-May-05 23:41 
AnswerRe: How to do this???? Pin
Rahim Rattani2-May-05 23:57
Rahim Rattani2-May-05 23:57 
AnswerRe: How to do this???? Pin
toxcct3-May-05 0:10
toxcct3-May-05 0:10 
AnswerRe: How to do this???? Pin
Blake Miller3-May-05 8:04
Blake Miller3-May-05 8:04 
QuestionGroup calendar control ? Pin
Bernhard2-May-05 23:39
Bernhard2-May-05 23:39 
GeneralSetWindowRgn() for buttons Pin
Asha Udupa2-May-05 23:24
Asha Udupa2-May-05 23:24 
GeneralRe: SetWindowRgn() for buttons Pin
Behzad Ebrahimi2-May-05 23:40
Behzad Ebrahimi2-May-05 23:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.