home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06191.TXT < prev    next >
Encoding:
Text File  |  1993-11-23  |  490 b   |  9 lines

  1. Like objects of built-in type, objects of class type can be
  2. declared to be volatile.  You may, for example, have a class in
  3. which data members are altered by signal handlers, or used by I/O
  4. functions that are mapped into memory.  Such accesses to data
  5. members do not appear in the code, and the compiler might optimize
  6. the code in such a way that these changes are lost.  When you
  7. declare an object to be volatile, you ask the compiler not to
  8. optimize accesses to its data members.
  9.