Use of volatile

Started by Bruce Momjianover 25 years ago2 messages
#1Bruce Momjian
pgman@candle.pha.pa.us

Is volatile being used because the variables are modified in a signal
handler? Maybe.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#2Alfred Perlstein
bright@wintelcom.net
In reply to: Bruce Momjian (#1)
Re: Use of volatile

* Bruce Momjian <pgman@candle.pha.pa.us> [000629 09:24] wrote:

Is volatile being used because the variables are modified in a signal
handler? Maybe.

Yes, that's another reason to use volatile.

-Alfred