INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
threadutils.h00001 /* 00002 * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics 00003 * http://gearbox.sf.net/ 00004 * Copyright (c) 2004-2010 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This distribution is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef GBXICEUTILACFR_THREAD_UTILS_H 00012 #define GBXICEUTILACFR_THREAD_UTILS_H 00013 00014 #include <IceUtil/Time.h> 00015 #include <gbxutilacfr/stoppable.h> 00016 00017 namespace gbxiceutilacfr { 00018 00023 void checkedSleep( gbxutilacfr::Stoppable* activity, const IceUtil::Time& duration, int checkIntervalMs=250 ); 00024 00026 void checkedSleep( gbxutilacfr::Stoppable* activity, int durationMs, int checkIntervalMs=250 ); 00027 00028 } // end namespace 00029 00030 #endif |