/** * * C++ class to encapsulate Unix Sem intrinsic structures and system calls * * Author: Sistemas Operativos (Francisco Arroyo) * Version: 2023/Abr/23 * **/ #ifndef _SEM_H #define _SEM_H #include class Sem { public: Sem( int = 1 ); ~Sem(); int Signal(); int Wait(); int tryWait(); int timedWait( long = 0, long = 0 ); private: sem_t * semId; }; #endif