/* * C++ class to encapsulate Unix semaphore intrinsic structures and system calls * Author: Programacion Concurrente (Francisco Arroyo) * Version: 2025/Ago/18 * * Ref.: https://en.wikipedia.org/wiki/Semaphore_(programming) * */ class Semaforo { public: Semaforo( int = 0 ); ~Semaforo(); int Signal(); // Puede llamarse V int Wait(); // Puede llamarse P private: int id; // Identificador del semaforo };