delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/12/03/21:05:45

From: sandrof AT microsoft DOT com (Alessandro Forin)
Subject: RE: ITIMER Implimentation???
3 Dec 1996 21:05:45 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <c=US%a=_%p=msft%l=RED-77-MSG-961204005425Z-66268.cygnus.gnu-win32@INET-02-IMC.microsoft.com>
Original-To: "'chris AT calligrafix DOT co DOT uk'" <chris AT calligrafix DOT co DOT uk>,
"'Jeremy Allison'" <jra AT cygnus DOT com>
Original-Cc: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63
Encoding: 47 TEXT
Original-Sender: owner-gnu-win32 AT cygnus DOT com

When I did the UX server with the rest of the Mach gang we implemented
this
with a separate thread that "slept" as long as needed.  When awoken it
would
send the signal to the app.  We made it so that one single thread
handled
all of the timer requests, from all apps.
I trust you can use this scheme on NT also, using events I suppose.

You will have to SuspendThread()/ResumeThread() the main thread to
serialize properly
[or whatever thread is supposed to take that signal, assuming cygwin is
MT].
This is the same thing NT does for the signals that it does support: it
starts
a second thread to actually execute the signal handler.

VMS does have signals, they are called ASTs.
Signals are bad for you.

sandro-

>----------
>From: 	Jeremy Allison[SMTP:jra AT cygnus DOT com]
>Sent: 	Tuesday, December 03, 1996 3:35 PM
>To: 	chris AT calligrafix DOT co DOT uk
>Cc: 	gnu-win32 AT cygnus DOT com
>Subject: 	Re: ITIMER Implimentation??? 
>
>Timers are not implemented yet in cygwin32 (Not even in
>the mythical beta17 :-). The reason is that asynchronous
>signals are not available in NT/95 (for reasons see the VMS
>source code or any other of Dave Cutlers work, ie. it's a
>religious thing :-).
>
>I have some ideas on how to do this but involves a complete
>re-write of the I/O code in Cygwin32 so don't expect it anytime
>soon...
>
>Sorry for the bad news.
>
>Jeremy.
>jra AT cygnus DOT com
>-
>For help on using this list, send a message to
>"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
>
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019