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
|
||||
// using mach timers for Mac and nanosleep for Linux
|
||||
#if defined ( __APPLE__ ) || defined ( __MACOSX )
|
||||
# include <mach/mach.h>
|
||||
# include <mach/mach_error.h>
|
||||
# include <mach/mach_time.h>
|
||||
#else
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
||||
# include <mach/mach.h>
|
||||
# include <mach/mach_error.h>
|
||||
# include <mach/mach_time.h>
|
||||
# else
|
||||
# include <sys/time.h>
|
||||
# endif
|
||||
|
||||
class CHighPrecisionTimer : public QThread
|
||||
{
|
||||
|
@ -96,13 +96,13 @@ protected:
|
|||
|
||||
bool bRun;
|
||||
|
||||
#if defined ( __APPLE__ ) || defined ( __MACOSX )
|
||||
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
||||
uint64_t Delay;
|
||||
uint64_t NextEnd;
|
||||
#else
|
||||
# else
|
||||
long Delay;
|
||||
timespec NextEnd;
|
||||
#endif
|
||||
# endif
|
||||
|
||||
signals:
|
||||
void timeout();
|
||||
|
|
Loading…
Reference in a new issue