From 2585ee37d0fa96bd933f4c8f8f165b56f581e0fe Mon Sep 17 00:00:00 2001 From: Luca Marchesano Date: Tue, 27 Nov 2018 16:41:34 +0100 Subject: [PATCH] Delete csemaphore.h --- csemaphore.h | 56 ---------------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 csemaphore.h diff --git a/csemaphore.h b/csemaphore.h deleted file mode 100644 index 74c68a8..0000000 --- a/csemaphore.h +++ /dev/null @@ -1,56 +0,0 @@ -// -// csemaphore.h -// xlxd -// -// Created by Jean-Luc Deltombe (LX3JL) on 16/04/2017. -// Copyright © 2015 Jean-Luc Deltombe (LX3JL). All rights reserved. -// -// ---------------------------------------------------------------------------- -// This file is part of xlxd. -// -// xlxd is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// xlxd is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Foobar. If not, see . -// ---------------------------------------------------------------------------- - -#ifndef csemaphore_h -#define csemaphore_h - - -//////////////////////////////////////////////////////////////////////////////////////// -// class - -class CSemaphore -{ -public: - // constructor - CSemaphore(); - - // destructor - virtual ~CSemaphore() {}; - - // operation - void Reset(void); - void Notify(void); - void Wait(void); - bool WaitFor(uint); - -protected: - // data - std::mutex m_Mutex; - std::condition_variable m_Condition; - int m_Count; - -}; - -//////////////////////////////////////////////////////////////////////////////////////// -#endif /* csemaphore_h */