mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
More build failure fixes
This commit is contained in:
parent
f700607a65
commit
36ca9132cc
2 changed files with 26 additions and 0 deletions
|
@ -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 "OffscreenUi.h"
|
||||||
#include <QOpenGLFramebufferObject>
|
#include <QOpenGLFramebufferObject>
|
||||||
#include <QOpenGLDebugLogger>
|
#include <QOpenGLDebugLogger>
|
||||||
|
|
|
@ -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
|
#pragma once
|
||||||
|
#ifndef hifi_ThreadHelpers_h
|
||||||
|
#define hifi_ThreadHelpers_h
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
#include <QMutex>
|
||||||
|
#include <QMutexLocker>
|
||||||
|
|
||||||
template <typename L, typename F>
|
template <typename L, typename F>
|
||||||
void withLock(L lock, F function) {
|
void withLock(L lock, F function) {
|
||||||
|
@ -11,3 +25,5 @@ void withLock(QMutex & lock, F function) {
|
||||||
QMutexLocker locker(&lock);
|
QMutexLocker locker(&lock);
|
||||||
function();
|
function();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in a new issue