More build failure fixes

This commit is contained in:
Bradley Austin Davis 2015-04-16 01:02:13 -07:00
parent f700607a65
commit 36ca9132cc
2 changed files with 26 additions and 0 deletions

View file

@ -1,3 +1,13 @@
//
// OffscreenUi.cpp
// interface/src/render-utils
//
// Created by Bradley Austin Davis on 2015-04-04
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "OffscreenUi.h"
#include <QOpenGLFramebufferObject>
#include <QOpenGLDebugLogger>

View file

@ -1,5 +1,19 @@
//
// ThreadHelpers.h
//
// Created by Bradley Austin Davis on 2015-04-04
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#pragma once
#ifndef hifi_ThreadHelpers_h
#define hifi_ThreadHelpers_h
#include <exception>
#include <QMutex>
#include <QMutexLocker>
template <typename L, typename F>
void withLock(L lock, F function) {
@ -11,3 +25,5 @@ void withLock(QMutex & lock, F function) {
QMutexLocker locker(&lock);
function();
}
#endif