The shared memory structure class shm_log has a constructor that will be called by the OS infrastructure code for the first Minirel process. This constructor must initialize the shared memory structure. In our case, it has to set the number of transactions field to zero. It must also call the constructor for the semaphore member sl_sem.
The class has no other methods because manipulation of the members is done by class log.