libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moLock.h
Go to the documentation of this file.
1 /*******************************************************************************
2 
3  moLock.h
4 
5  ****************************************************************************
6  * *
7  * This source is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  * This code is distributed in the hope that it will be useful, but *
13  * WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15  * General Public License for more details. *
16  * *
17  * A copy of the GNU General Public License is available on the World *
18  * Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also *
19  * obtain it by writing to the Free Software Foundation, *
20  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21  * *
22  ****************************************************************************
23 
24  Copyright(C) 2006 Fabricio Costa
25 
26  Authors:
27  Fabricio Costa
28 
29  Class:
30  moLock
31 
32  Description:
33  Mutex Lock-Unlockin class implementation
34 
35 *******************************************************************************/
36 
37 #include "moTypes.h"
38 
39 #ifndef __MO_LOCK_H
40 #define __MO_LOCK_H
41 
43 
47 typedef void* moBoostMutex;
48 typedef void* moBoostLock;
49 
51 
52  public:
53  moLock();
54  ~moLock();
55 
56  bool Lock();
57 
58  bool Unlock();
59 
60  private:
61  moBoostMutex m_mutex;
62  moBoostLock m_lock;
63 };
64 
65 #endif
66 
Definition: moLock.h:50
void * moBoostLock
Definition: moLock.h:48
#define LIBMOLDEO_API
Definition: moTypes.h:180
void * moBoostMutex
implementación de bloqueo de ejecución, para el manejo asincrónico, primera versión basda en SDL_mutex ...
Definition: moLock.h:47