Implementation of sched_rr_get_interval for NT systems.

Robert Collins rbcollins@cygwin.com
Thu Feb 6 00:57:00 GMT 2003


On Thu, 2003-02-06 at 11:50, Vaclav Haisman wrote:
> Hi,
> this patch implements sched_rr_get_interval for NT systems. The patch consists
> of two parts.
> 
> The first part is detection of NT server systems, NT servers have different
> time quanta than workstations. Unfortunately the server detection is not
> perfect because GetVersionEx call with OSVERSIONINFOEX structure is supported
> only on NT 4 SP6 and newer system. Therefore new is_system wincaps flag
> defaults to false as I assume that there are more NT workstations than servers.
> 
> The second part is implementation of sched_rr_get_interval in sched.cc itself.
> I have used two main sources of informations about time quanta for NT systems.
> Those sources are two web pages:
> http://www.microsoft.com/mspress/books/sampchap/4354c.asp
> http://www.jsifaq.com/SUBH/tip3700/rh3795.htm
> 


You should get for failure on all API calls you make - for instance the
registry key reading one. Other than that, the sched.cc stuff looks good
to me. 

This will need a copyright assignment though, and Chris/Corinna to chime
in.

Cheers,
Rob
-- 
GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030206/960fe76c/attachment.sig>


More information about the Cygwin-patches mailing list