spinlock: Add simple spin-lock.
heartbeat: Add structure for managing heartbeat signals in shared memory.