Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

wefts_sleep.h

Go to the documentation of this file.
00001 /*
00002    wefts_sleep.h
00003    Utility function to delay the threads
00004 
00005    $Id: wefts_sleep.h,v 1.4 2003/12/14 09:07:55 jonnymind Exp $
00006 ---------------------------------------------
00007    Begin      : 2003-08-03 03:56
00008    Author     : Giancarlo Niccolai
00009 
00010    Last modified because:
00011 
00012 */
00013 
00014 /**************************************************************************
00015 *   This program is free software; you can redistribute it and/or modify  *
00016 *   it under the terms of the GNU Library General Public License as       *
00017 *   published by the Free Software Foundation; either version 2.1 of the  *
00018 *   License, or (at your option) any later version.                       *
00019 ***************************************************************************/
00020 
00021 #ifndef WT_SLEEP_H
00022 #define WT_SLEEP_H
00023 
00024 namespace Wefts {
00025 
00042 inline bool Sleep( long seconds, long nanoseconds )
00043 {
00044    return OSSleep( seconds, nanoseconds );
00045 }
00046 
00068 inline bool Sleep( double seconds )
00069 {
00070    return Sleep( long( seconds ),
00071       long( (seconds - long(seconds)) *1000000000l) );
00072 }
00073 
00074 }
00075 
00076 #endif
00077 /* end of wefts_sleep.h */

Generated on Sat Mar 13 21:05:43 2004 for Wefts by doxygen 1.3.5