Make backwards compatible stubs so only a recompile without any modification is required.

This commit is contained in:
Erik Hofman 2020-01-23 10:38:52 +01:00
parent aab88b411e
commit 9f8e6c0634
3 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
include (SimGearComponent)
set(HEADERS
SGGuard.hxx
SGQueue.hxx
SGThread.hxx)

View File

@ -0,0 +1,5 @@
#pragma once
#pragma message(": warning<deprecated> use std::lock_guard and std::mutex.")
// backwards compatibility, just needs a recompile
#define SGGuard std::lock_guard

View File

@ -29,6 +29,11 @@
#include <simgear/compiler.h>
#include <simgear/timing/timestamp.hxx>
// backwards compatibility, just needs a recompile
#define SGMutex std::mutex
/**
* Encapsulate generic threading methods.
* Users derive a class from SGThread and implement the run() member function.