]> SALOME platform Git repositories - modules/yacs.git/blob - src/bases/Semaphore.hxx
Salome HOME
80ec7454a5b529a4582bc08ebd75622fd5ec8156
[modules/yacs.git] / src / bases / Semaphore.hxx
1 //  Copyright (C) 2006-2008  CEA/DEN, EDF R&D
2 //
3 //  This library is free software; you can redistribute it and/or
4 //  modify it under the terms of the GNU Lesser General Public
5 //  License as published by the Free Software Foundation; either
6 //  version 2.1 of the License.
7 //
8 //  This library is distributed in the hope that it will be useful,
9 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 //  Lesser General Public License for more details.
12 //
13 //  You should have received a copy of the GNU Lesser General Public
14 //  License along with this library; if not, write to the Free Software
15 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 #ifndef __SEMAPHORE_HXX__
20 #define __SEMAPHORE_HXX__
21
22 /* Interface is :
23    class Semaphore
24     {
25     public:
26       Semaphore(int initValue=0);
27       ~Semaphore();
28       void post();
29       void wait();
30       int getvalue();
31     };
32  */
33
34 #if defined(YACS_PTHREAD)
35 #include "SemaphorePT.hxx"
36
37 namespace YACS
38 {
39   namespace BASES
40   {
41     typedef SemaphorePT Semaphore;
42   }
43 }
44 #else
45 #error
46 #endif
47
48 #endif