timesync_thread.cpp

00001 
00002 /***************************************************************************
00003  *  timesync_thread.cpp - Thread to synchronize loops, PRE_LOOP hook
00004  *
00005  *  Created: Tue Sep 30 14:29:59 2008
00006  *  Copyright  2006-2008  Tim Niemueller [www.niemueller.de]
00007  *
00008  ****************************************************************************/
00009 
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU Library General Public License for more details.
00019  *
00020  *  Read the full text in the LICENSE.GPL file in the doc directory.
00021  */
00022 
00023 #include "timesync_thread.h"
00024 
00025 using namespace fawkes;
00026 
00027 /** @class PlayerTimeSyncThread "playerc_thread.h"
00028  * Synchronization thread Time Sync
00029  * This thread is called in the PRE_LOOP hook to synchronize a Player
00030  * simulation loop and a Fawkes loop. Additionally, it provides a simulation
00031  * time source based on time received during the synchronization.
00032  * @author Tim Niemueller
00033  *
00034  * @todo needs real integration, currently only place holder
00035  */
00036 
00037 
00038 /** Constructor. */
00039 PlayerTimeSyncThread::PlayerTimeSyncThread()
00040   : Thread("PlayerTimeSyncThread", Thread::OPMODE_WAITFORWAKEUP),
00041     BlockedTimingAspect(BlockedTimingAspect::WAKEUP_HOOK_PRE_LOOP)
00042     //TimeSourceAspect(&__simts)
00043 {
00044 }
00045 
00046 
00047 void
00048 PlayerTimeSyncThread::init()
00049 {
00050 }
00051 
00052 
00053 void
00054 PlayerTimeSyncThread::finalize()
00055 {
00056 }
00057 
00058 
00059 void
00060 PlayerTimeSyncThread::loop()
00061 {
00062 }

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1