Make backwards compatible stubs so only a recompile without any modification is required.
This commit is contained in:
parent
aab88b411e
commit
9f8e6c0634
@ -1,6 +1,7 @@
|
||||
include (SimGearComponent)
|
||||
|
||||
set(HEADERS
|
||||
SGGuard.hxx
|
||||
SGQueue.hxx
|
||||
SGThread.hxx)
|
||||
|
||||
|
5
simgear/threads/SGGuard.hxx
Normal file
5
simgear/threads/SGGuard.hxx
Normal 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
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user