Codechange: Use platform independent C++11 function for sleeping on a thread.

This commit is contained in:
Michael Lutz
2019-03-17 11:05:53 +01:00
parent 94c5269fa7
commit ae748166d0
12 changed files with 17 additions and 25 deletions

View File

@@ -25,6 +25,7 @@
#include "../core/random_func.hpp"
#include "../core/math_func.hpp"
#include "../framerate_type.h"
#include "../thread.h"
#include "allegro_v.h"
#include <allegro.h>

View File

@@ -37,6 +37,7 @@
#include "../../core/math_func.hpp"
#include "../../texteff.hpp"
#include "../../window_func.h"
#include "../../thread.h"
#import <sys/time.h> /* gettimeofday */

View File

@@ -30,6 +30,7 @@
#include "../../core/sort_func.hpp"
#include "cocoa_v.h"
#include "../../gfx_func.h"
#include "../../thread.h"
#include "../../os/macosx/macos.h"
/**
@@ -174,7 +175,7 @@ class FullscreenSubdriver : public CocoaSubdriver {
double adjustment = (target - position) / linesPerSecond;
CSleep((uint32)(adjustment * 1000));
CSleep((uint32)adjustment * 1000);
}

View File

@@ -22,6 +22,7 @@
#include "../company_func.h"
#include "../core/random_func.hpp"
#include "../saveload/saveload.h"
#include "../thread.h"
#include "dedicated_v.h"
#ifdef __OS2__