flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Vasilev Vjacheslav 06 Jul 2005, 05:26
maybe WaitForSingleObject, MsgWaitForMultipleObjects or Sleep
|
|||
![]() |
|
r22 06 Jul 2005, 17:19
SleepEx api is definetly what your looking for.
Code: .DoEventsLabel: ...Your Code... PUSH 0 ;event obj alertable = false PUSH 0 ;millisecond delay (none just let other threads get slice) CALL SleepEx JMP .DoEventsLabel OPTIMIZATION TIP (if you don't care about win9x TO xp/nt compat): Always use the Ex suffixed or Nt/Rtl prefixed api's when possible because the shorter named functions call their Ex counterpart anyways. You call VirtualAlloc System call's VirtualAlloc WHICH call's VirtualAllocEx WHICH calls NtAllocateVirtualMemory |
|||
![]() |
|
cod3b453 06 Jul 2005, 19:03
Thanks Vasilev Vjacheslav & r22!
I read the documentaton for Sleep[Ex] again and realised the bit about setting timeout to 0 ![]() I'll try that optimisation tip as well thanks cod3b453 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.