1. Re[2]: euLibnet and IRC
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> May 31, 2001
- 387 views
> 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
2. Re: Re[2]: euLibnet and IRC
- Posted by gertie at ad-tek.net May 31, 2001
- 387 views
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! Kat