added QSE_CPP_OVERRIDE
This commit is contained in:
parent
f083bbe21f
commit
54d1197b1a
@ -44,6 +44,7 @@
|
|||||||
#define QSE_CPP_THREXCEPT4(e1,e2,e3,e4) throw(e1,e2,e3,e4)
|
#define QSE_CPP_THREXCEPT4(e1,e2,e3,e4) throw(e1,e2,e3,e4)
|
||||||
#define QSE_CPP_THREXCEPT5(e1,e2,e3,e4,e5) throw(e1,e2,e3,e4,e5)
|
#define QSE_CPP_THREXCEPT5(e1,e2,e3,e4,e5) throw(e1,e2,e3,e4,e5)
|
||||||
#define QSE_CPP_EXPLICIT explicit
|
#define QSE_CPP_EXPLICIT explicit
|
||||||
|
#define QSE_CPP_OVERRIDE override
|
||||||
|
|
||||||
/// The QSE_CPP_ENABLE_CPP11_MOVE macro enables C++11 move semantics
|
/// The QSE_CPP_ENABLE_CPP11_MOVE macro enables C++11 move semantics
|
||||||
/// in various classes.
|
/// in various classes.
|
||||||
@ -69,6 +70,7 @@
|
|||||||
#define QSE_CPP_THREXCEPT4(e1,e2,e3,e4) throw(e1,e2,e3,e4)
|
#define QSE_CPP_THREXCEPT4(e1,e2,e3,e4) throw(e1,e2,e3,e4)
|
||||||
#define QSE_CPP_THREXCEPT5(e1,e2,e3,e4,e5) throw(e1,e2,e3,e4,e5)
|
#define QSE_CPP_THREXCEPT5(e1,e2,e3,e4,e5) throw(e1,e2,e3,e4,e5)
|
||||||
#define QSE_CPP_EXPLICIT
|
#define QSE_CPP_EXPLICIT
|
||||||
|
#define QSE_CPP_OVERRIDE
|
||||||
|
|
||||||
#define QSE_CPP_CALL_DESTRUCTOR(ptr, class_name) ((ptr)->~class_name())
|
#define QSE_CPP_CALL_DESTRUCTOR(ptr, class_name) ((ptr)->~class_name())
|
||||||
#define QSE_CPP_CALL_PLACEMENT_DELETE1(ptr, arg1) (::operator delete((ptr), (arg1)))
|
#define QSE_CPP_CALL_PLACEMENT_DELETE1(ptr, arg1) (::operator delete((ptr), (arg1)))
|
||||||
@ -81,6 +83,7 @@
|
|||||||
#define QSE_CPP_THREXCEPT4(e1,e2,e3,e4)
|
#define QSE_CPP_THREXCEPT4(e1,e2,e3,e4)
|
||||||
#define QSE_CPP_THREXCEPT5(e1,e2,e3,e4,e5)
|
#define QSE_CPP_THREXCEPT5(e1,e2,e3,e4,e5)
|
||||||
#define QSE_CPP_EXPLICIT
|
#define QSE_CPP_EXPLICIT
|
||||||
|
#define QSE_CPP_OVERRIDE
|
||||||
|
|
||||||
#if defined(__BORLANDC__)
|
#if defined(__BORLANDC__)
|
||||||
|
|
||||||
|
@ -118,7 +118,9 @@ public:
|
|||||||
typedef int (*ThreadRoutine) (Thread* thr);
|
typedef int (*ThreadRoutine) (Thread* thr);
|
||||||
|
|
||||||
// execute the given function in a thread.
|
// execute the given function in a thread.
|
||||||
virtual int start (ThreadRoutine rtn, int flags = 0) QSE_CPP_NOEXCEPT;
|
// this is supposed to hide Thread::start(int flags).
|
||||||
|
// in this class, the start() method must be given the ThreadRoutine point.
|
||||||
|
virtual int start (ThreadRoutine rtn, int flags = 0) QSE_CPP_NOEXCEPT QSE_CPP_OVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ThreadRoutine __tmprtn;
|
ThreadRoutine __tmprtn;
|
||||||
|
Loading…
Reference in New Issue
Block a user