summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/include
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-10-20 21:31:38 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-10-20 21:31:38 +0000
commit6d5b4c162a2564fcd67f9b5cd5be4ed22a3dc575 (patch)
tree942d1db600822a554ada8c6dd6953f58dfd4ba73 /Tests/TestApp/include
parentUpdated readme (diff)
downloadDiligentEngine-6d5b4c162a2564fcd67f9b5cd5be4ed22a3dc575.tar.gz
DiligentEngine-6d5b4c162a2564fcd67f9b5cd5be4ed22a3dc575.zip
Updated core; updated smart pointer test
Diffstat (limited to 'Tests/TestApp/include')
-rw-r--r--Tests/TestApp/include/SmartPointerTest.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/Tests/TestApp/include/SmartPointerTest.h b/Tests/TestApp/include/SmartPointerTest.h
index f205246..9b2073e 100644
--- a/Tests/TestApp/include/SmartPointerTest.h
+++ b/Tests/TestApp/include/SmartPointerTest.h
@@ -58,6 +58,16 @@ public:
int m_Value;
};
+ class DerivedObject : public Object
+ {
+ public:
+ DerivedObject(Diligent::IReferenceCounters *pRefCounters) :
+ Object(pRefCounters),
+ m_Value2(1)
+ {}
+ int m_Value2;
+ };
+
typedef Diligent::RefCntAutoPtr<Object> SmartPtr;
typedef Diligent::RefCntWeakPtr<Object> WeakPtr;
@@ -76,9 +86,9 @@ public:
bool m_bStopThreads = false;
int m_NumTestsPerformed = 0;
#ifdef _DEBUG
- static const int NumThreadInterations = 20;
+ static const int NumThreadInterations = 5;
#else
- static const int NumThreadInterations = 50;
+ static const int NumThreadInterations = 10;
#endif
std::mutex m_Mtx;
std::condition_variable m_CondVar;