[WIN] sleep(0) tests

new topic     » topic index » view thread      » older message » newer message

Hey all windose gurus out there!!!!

What happens to a proper windoze application if an event happens during a
sleep(x),
and the Eu app has the appropriate routine_id() code to reply to it? 

For instance:

procedure code()
--some code
sleep(5)
-- some more code
end procedure -- code()

-- routine_id() list

Now what happens if sleep(5) is hit, and 1 second later something happens in
windows
that would trigger a high-priority procedure in the routine_id() list? Is the
line after
sleep(5) executed, or is that routine_id() hit first? Is it possible to set the
priority of the
routine_id()s and thereby be able to tell windoze what it is supposed to be
doing when
it's the Eu app's time to exec? If i was any good at win coding, i'd try it
myself, but i
wouldn't know if i succeeded of not. Could someone give this a try and let me
know
what happens? This could break the throttling of blocking calls in winsock apps
if we
could set the winsock calls low priority and toss in some sleep(0)s and set the
rest of
the application to a higher priority! Can this be done in win32lib, to make this
trick
transparent to those apps which use it? Is there a priority list of win
callbacks, so if we
can't change the priorities, can we set up our code to somehow pick the call
that has
the priority we want for that code?

Kat

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu