1. Re[2]: euLibnet and IRC

> What i was hoping is if sleep(0) can be used to revert control to win32lib,
> and
> a higher priority task was found in the task que there, win32lib could shuffle
>
> the scheduled tasks so the line following the sleep(0) would not always be 
> the next line executed, and this would eliminate some time spent polling the 
> socket or continuously reading the ServerNeedsAttention(sock_connect[2]). 
> It would be a cheap way to make pseudo-threads, by setting these priority
> flags, and the highest priority gets the cpu after the sleep(0).

Hi,

That's pretty much what win32lib's doEvents(0) function does...

Thomas Parslow (PatRat) ICQ #:26359483
Rat Software
http://www.rat-software.com/
Please leave quoted text in place when replying

new topic     » topic index » view message » categorize

2. Re: Re[2]: euLibnet and IRC

On 31 May 2001, at 22:42, Thomas Parslow (PatRat) wrote:

> 
> 
> > What i was hoping is if sleep(0) can be used to revert control to win32lib,
> > and
> > a higher priority task was found in the task que there, win32lib could
> > shuffle
> > the scheduled tasks so the line following the sleep(0) would not always be 
> > the next line executed, and this would eliminate some time spent polling the
> >
> > socket or continuously reading the ServerNeedsAttention(sock_connect[2]). 
> > It would be a cheap way to make pseudo-threads, by setting these priority
> > flags, and the highest priority gets the cpu after the sleep(0).
> 
> Hi,
> 
> That's pretty much what win32lib's doEvents(0) function does...

I hope someone bright, who can do windows programming, will pounce on this and
give
us an example! smile

Kat

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu