itom
3.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
sleeper.h
1
/* ********************************************************************
2
itom software
3
URL: http://www.uni-stuttgart.de/ito
4
Copyright (C) 2016, Institut fuer Technische Optik (ITO),
5
Universitaet Stuttgart, Germany
6
7
This file is part of itom.
8
9
itom is free software; you can redistribute it and/or modify it
10
under the terms of the GNU Library General Public Licence as published by
11
the Free Software Foundation; either version 2 of the Licence, or (at
12
your option) any later version.
13
14
itom is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17
General Public Licence for more details.
18
19
You should have received a copy of the GNU Library General Public License
20
along with itom. If not, see <http://www.gnu.org/licenses/>.
21
*********************************************************************** */
22
23
#ifndef SLEEPER_H
24
#define SLEEPER_H
25
26
#include <qthread.h>
27
28
namespace
ito
29
{
30
//for Qt5 only, QThread::usleep... are all public, then this helper class is not needed any more.
31
class
Sleeper
:
public
QThread
32
{
33
public
:
34
static
void
usleep(
unsigned
long
usecs){QThread::usleep(usecs);}
35
static
void
msleep(
unsigned
long
msecs){QThread::msleep(msecs);}
36
static
void
sleep(
unsigned
long
secs){QThread::sleep(secs);}
37
};
38
}
39
40
#endif //SLEEPER_H
ito::Sleeper
Definition:
sleeper.h:31
ito
Definition:
apiFunctionsGraph.cpp:39
sources
itom
Qitom
helper
sleeper.h
Generated on Wed Apr 12 2017 15:29:46 for itom by
1.8.11