00001 /*-------------------------------------------------------------------- 00002 * 00003 * (C) Copyright Koninklijke Philips Electronics NV 2006. 00004 * All rights reserved. This software is licensed under the terms of 00005 * version 2.1 of the GNU Lesser General Public License as published 00006 * by the Free Software Foundation. For licensing and warranty 00007 * information, see the file COPYING in the main directory. 00008 * 00009 *------------------------------------------------------------------*/ 00010 00011 #ifndef TRTMUTEX_H 00012 #define TRTMUTEX_H 00013 00014 #include "osmutex.h" 00015 #include "trtsemaphore.h" 00016 00017 class trtOs; 00018 00019 class trtMutex : public osMutex 00020 { 00021 public: 00022 trtMutex(bool locked = false); 00023 00024 void lock(); 00025 void unlock(); 00026 00027 private: 00028 trtSemaphore sema; 00029 }; 00030 00031 #endif