semaphore.h.svn-base

来自「德国Erlangen大学教学操作系统源码。」· SVN-BASE 代码 · 共 34 行

SVN-BASE
34
字号
/*****************************************************************************//* Betriebssysteme                                                           *//*---------------------------------------------------------------------------*//*                                                                           *//*                           S E M A P H O R E                               *//*                                                                           *//*---------------------------------------------------------------------------*//* Semaphore werden zur Synchronisation von Threads verwendet.               *//*****************************************************************************/#ifndef __Semaphore_include__#define __Semaphore_include__#include "meeting/waitingroom.h"class Semaphore: public Waitingroom {       public:	Semaphore();	Semaphore(int c);	virtual ~Semaphore();	void p();	void v();	void wait();	void signal();// private:	int _z;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?