Thread: Use of volatile

Use of volatile

From
Bruce Momjian
Date:
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,
Pennsylvania19026
 


Re: Use of volatile

From
Alfred Perlstein
Date:
* 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