Deque.h

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * X-VR2 
00005  * 
00006  * Copyright (C) Juan V. Guerrero 2007
00007  * 
00008  * Juan V. Guerrero <mindstorm2600@users.sourceforge.net>
00009  * 
00010  * This program is free software, distributed under the terms of
00011  * the GNU General Public License Version 2. See the LICENSE file
00012  * at the top of the source tree.
00013  */
00014 #ifndef __XVR2_DEQUE_H__
00015 #define __XVR2_DEQUE_H__
00016 #include<xvr2/Mutex.h>
00017 #include<xvr2/String.h>
00018 #include<deque>
00019 
00020 namespace xvr2 {
00021 
00022         template<typename _Tp>
00023         class Deque : public xvr2::Object, public std::deque<_Tp> {
00024                 private:
00025                 protected:
00026                         Mutex mq;
00027                 public:
00028                         Deque() : std::deque<_Tp>() { }
00029                         
00030                         void lock(){
00031                                 mq.lock();
00032                         }
00033                         
00034                         void unlock(){
00035                                 mq.unlock();
00036                         }
00037         };
00038 }
00039 
00040 #endif

Generated on Fri Jun 20 22:55:47 2008 for X-VR2 SDK by  doxygen 1.5.5