Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wanted: Sleep function that doesn't throttle CPU

Status
Not open for further replies.

electroglyph

Programmer
Nov 15, 2010
1
0
0
US
I'm pretty terrible at ASM, mostly learned from intel opcode reference and using debuggers a lot.

I'm currently writing a little snippet of code that needs to be very small and not use APIs if possible, or as few as possible. This is because I have to be able to easily assemble the instructions on the fly for dynamic code injection into a live process.

I need a sleep function that doesn't throttle the current thread...if it's at all possible to do fairly simply and reliably. My environment is windows XP and later, with access to a msvc runtime and the normal windows APIs.

I'm very good at threading in managed language, but have no idea how to do something at a lower level.

Any tips or pointers in the right direction greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top