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 #include "taskimpl.h" 00012 #include "os.h" 00013 #include "ostask.h" 00014 00015 Os* TaskImpl::boot = 0; 00016 00017 TaskImpl::TaskImpl(void (*f)(void*), void* a) 00018 { 00019 impl = TaskImpl::OS()->createTask(f,a); 00020 } 00021 00022 TaskImpl::~TaskImpl() 00023 { 00024 delete impl; 00025 } 00026 00027 void TaskImpl::start() 00028 { 00029 impl->start(); 00030 } 00031 00032 void TaskImpl::exit() 00033 { 00034 impl->exit(); 00035 } 00036 00037 void TaskImpl::join() 00038 { 00039 impl->join(); 00040 } 00041 00042 void TaskImpl::kill() 00043 { 00044 impl->kill(); 00045 } 00046 00047 Os* TaskImpl::OS() 00048 { 00049 return boot; 00050 }