This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

nanosleep patch 1


This is part 1 of the patch I sent yesterday.
See previous mails for background  info.
Here are some more details:

hires_ms::minperiod    Make NO_COPY for per process initialization.
hires_ms::resolution   For use in sleep and alarm
hires_ms::dmsecs       Ditto
_DELAY_MAX             Ditto
hires_ms::~hires_ms    Delete, rely on Windows end of process cleanup.
                       Note that previous version could call timeEndPeriod
                       even when timeBeginPeriod had not been called.

Pierre

2003-09-04  Pierre Humblet <pierre.humblet@ieee.org>

	* hires.h (_DELAY_MAX): Define.
	(hires_ms::minperiod): Declare static.
	(hires_ms::resolution): New.
	(hires_ms::dmsecs): New.
	(hires_ms::~hires_ms): Delete.
 	(gtod): Declare. 
	* time.c (hires_ms::prime): Always calculate minperiod and 
	set it to 1 in case of failure.
	(hires_ms::resolution): Define.
	(hires_ms::~hires_ms): Delete.
	(hires_ms::usecs): Check minperiod to prime.
	(gtod) Define as global.

Attachment: sleep1.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]