![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
00001 /******************************************************************************** 00002 * * 00003 * C o n d i t i o n C l a s s * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 2004,2012 by Jeroen van der Zijp. All Rights Reserved. * 00007 ********************************************************************************* 00008 * This library is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU Lesser General Public License as published by * 00010 * the Free Software Foundation; either version 3 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This library is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public License * 00019 * along with this program. If not, see <http://www.gnu.org/licenses/> * 00020 ********************************************************************************/ 00021 #ifndef FXCONDITION_H 00022 #define FXCONDITION_H 00023 00024 namespace FX { 00025 00026 00034 class FXAPI FXCondition { 00035 private: 00036 volatile FXuval data[12]; 00037 private: 00038 FXCondition(const FXCondition&); 00039 FXCondition& operator=(const FXCondition&); 00040 public: 00041 00043 FXCondition(); 00044 00048 void signal(); 00049 00053 void broadcast(); 00054 00062 FXbool wait(FXMutex& mtx); 00063 00073 FXbool wait(FXMutex& mtx,FXTime nsec); 00074 00076 ~FXCondition(); 00077 }; 00078 00079 } 00080 00081 #endif 00082
|
|