Files
pilotclient/src/blackcore/blackcorefreefunctions.h
2015-05-05 21:34:28 +02:00

24 lines
737 B
C++

/* Copyright (C) 2013 VATSIM Community / contributors
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef BLACKCORE_FREEFUNCTIONS_H
#define BLACKCORE_FREEFUNCTIONS_H
#include "blackcoreexport.h"
#include <QObject>
namespace BlackCore
{
//! Register all relevant metadata in BlackCore
BLACKCORE_EXPORT void registerMetadata();
//! Is the current thread the one created the object
//! \remarks can be used as ASSERT check for threaded objects
BLACKCORE_EXPORT bool isCurrentThreadCreatingThread(QObject *toBeTested);
} // BlackCore
#endif // guard