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 TRTOS_H 00012 #define TRTOS_H 00013 00014 #include "os.h" 00015 00016 class osTask; 00017 class osSemaphore; 00018 class osMutex; 00019 00020 class trtOs : public Os 00021 { 00022 public: 00023 trtOs(); 00024 ~trtOs(); 00025 00026 osTask* createTask(void (*f)(void*), void* arg); 00027 osMutex* createMutex(bool locked = false); 00028 osSemaphore* createSemaphore(int credit = 0); 00029 }; 00030 00031 #endif