forked from organicmaps/organicmaps
[msvc] Fix compilation errors.
This commit is contained in:
parent
7a5781595c
commit
13a7ef1f6b
3 changed files with 15 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "../std/stdint.hpp"
|
||||
#include "../std/iostream.hpp"
|
||||
|
||||
class Reader;
|
||||
|
|
|
@ -7,17 +7,19 @@
|
|||
|
||||
#include "../../std/bind.hpp"
|
||||
|
||||
|
||||
void incrementValue(int & i)
|
||||
{
|
||||
++i;
|
||||
}
|
||||
|
||||
#ifdef OMIM_OS_MAC
|
||||
|
||||
UNIT_TEST(TimerTest)
|
||||
{
|
||||
int i = 0;
|
||||
#ifdef OMIM_OS_MAC
|
||||
|
||||
VideoTimer * videoTimer = CreatePThreadVideoTimer(bind(&incrementValue, ref(i)));
|
||||
#endif
|
||||
|
||||
LOG(LINFO, ("checking for approximately 60 cycles in second"));
|
||||
|
||||
|
@ -42,5 +44,4 @@ UNIT_TEST(TimerTest)
|
|||
videoTimer->stop();
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,10 +1,16 @@
|
|||
#include <pthread.h>
|
||||
#include "../std/target_os.hpp"
|
||||
|
||||
#ifndef OMIM_OS_WINDOWS_NATIVE
|
||||
|
||||
#include "video_timer.hpp"
|
||||
|
||||
#include "../base/logging.hpp"
|
||||
|
||||
#include <pthread.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/errno.h>
|
||||
|
||||
|
||||
class PThreadVideoTimer : public VideoTimer
|
||||
{
|
||||
private:
|
||||
|
@ -131,3 +137,5 @@ VideoTimer * CreatePThreadVideoTimer(VideoTimer::TFrameFn frameFn)
|
|||
{
|
||||
return new PThreadVideoTimer(frameFn);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue