home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / emerald / emrldsys.lha / Kernel / h / checkPoint.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-17  |  1.1 KB  |  32 lines

  1. /*
  2.  * checkPoint.h - Emerald checkPoint operation, external interface
  3.  *
  4.  * Copyright 1987 Clinton Jeffery
  5.  * Last edit: 11/19/87
  6.  *
  7.  * The checkpoint on disk consists of two components: a database
  8.  * of checkpointed objects, and a log file.  The database is also
  9.  * kept online in main memory as a write through 'cache'.  All
  10.  * kernel access to the checkpoint is through two primitives; these
  11.  * primitves in turn call database and log file routines as needed.
  12.  */
  13.  
  14. extern void CPInit();
  15. /*
  16.  * CPInit is responsible for opening and loading the
  17.  * database file, and then recovering all valid checkpointed
  18.  * objects.  During the recovery process, a new log file is written;
  19.  * the old one is discarded.  Thus garbage collection is performed
  20.  * each time the kernel restarts.
  21.  */
  22.  
  23. extern void Checkpoint();
  24. /*
  25.  * CheckPoint writes a new copy of the current global object to the
  26.  * log file, and updates the database accordingly.
  27.  * The initial checkpoint of an object results in new entries in
  28.  * both the log file and the database.  Subsequent checkpoints
  29.  * result in a new entry to the log file (no real-time garbage
  30.  * collection), an an update to the database entry.
  31.  */
  32.