code style
This commit is contained in:
parent
572cee0143
commit
d3fce3fe62
1 changed files with 10 additions and 10 deletions
20
src/server.h
20
src/server.h
|
@ -72,13 +72,13 @@ signals:
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
// using mach timers for Mac and nanosleep for Linux
|
// using mach timers for Mac and nanosleep for Linux
|
||||||
#if defined ( __APPLE__ ) || defined ( __MACOSX )
|
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
||||||
# include <mach/mach.h>
|
# include <mach/mach.h>
|
||||||
# include <mach/mach_error.h>
|
# include <mach/mach_error.h>
|
||||||
# include <mach/mach_time.h>
|
# include <mach/mach_time.h>
|
||||||
#else
|
# else
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
#endif
|
# endif
|
||||||
|
|
||||||
class CHighPrecisionTimer : public QThread
|
class CHighPrecisionTimer : public QThread
|
||||||
{
|
{
|
||||||
|
@ -96,13 +96,13 @@ protected:
|
||||||
|
|
||||||
bool bRun;
|
bool bRun;
|
||||||
|
|
||||||
#if defined ( __APPLE__ ) || defined ( __MACOSX )
|
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
||||||
uint64_t Delay;
|
uint64_t Delay;
|
||||||
uint64_t NextEnd;
|
uint64_t NextEnd;
|
||||||
#else
|
# else
|
||||||
long Delay;
|
long Delay;
|
||||||
timespec NextEnd;
|
timespec NextEnd;
|
||||||
#endif
|
# endif
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void timeout();
|
void timeout();
|
||||||
|
|
Loading…
Reference in a new issue