History

Attempting to fix threading issues with web entities

Brad Davis committed 11 years ago

Commit 3b7e8a61 parent a0097bc5 files · +35 −28Browse files

Showing the changes to libraries/render-utils/src/AbstractViewStateInterface.cpp (1 of 5 files). Show all

Unified · Split

libraries/render-utils/src/AbstractViewStateInterface.cpp+20−0
@@ -0,0 +1,20 @@
1+//
2+// Created by Bradley Austin Davis 2015/05/13
3+// Copyright 2014 High Fidelity, Inc.
4+//
5+// Distributed under the Apache License, Version 2.0.
6+// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7+//
8+
9+#include "AbstractViewStateInterface.h"
10+
11+static AbstractViewStateInterface* INSTANCE{nullptr};
12+
13+AbstractViewStateInterface* AbstractViewStateInterface::instance() {
14+ return INSTANCE;
15+}
16+
17+void AbstractViewStateInterface::setInstance(AbstractViewStateInterface* instance) {
18+ INSTANCE = instance;
19+}
20+