Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

muteximpl.cc

Go to the documentation of this file.
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 MUTEXIMPL_CC
00012 #define MUTEXIMPL_CC
00013 
00014 #include "muteximpl.h"
00015 #include "taskimpl.h"
00016 #include "os.h"
00017 #include "osmutex.h"
00018 #include <assert.h>
00019 
00020 MutexImpl::MutexImpl(bool locked)
00021 { 
00022   assert(TaskImpl::OS());
00023   impl = TaskImpl::OS()->createMutex(locked);
00024 }
00025 
00026 MutexImpl::~MutexImpl()
00027 {
00028   delete impl;
00029 }
00030 
00031 void MutexImpl::lock()
00032 {
00033   impl->lock();
00034 }
00035 
00036 void MutexImpl::unlock()
00037 {
00038   impl->unlock();
00039 }
00040 
00041 #endif

Generated on Wed Feb 15 14:52:39 2006 for yapi by doxygen 1.3.2