diff options
Diffstat (limited to '3rdparty/asmjit/src/asmjit/core/osutils.h')
-rw-r--r-- | 3rdparty/asmjit/src/asmjit/core/osutils.h | 40 |
1 files changed, 7 insertions, 33 deletions
diff --git a/3rdparty/asmjit/src/asmjit/core/osutils.h b/3rdparty/asmjit/src/asmjit/core/osutils.h index a4691295b20..3c5c3d94c1e 100644 --- a/3rdparty/asmjit/src/asmjit/core/osutils.h +++ b/3rdparty/asmjit/src/asmjit/core/osutils.h @@ -1,25 +1,7 @@ -// AsmJit - Machine code generation for C++ +// This file is part of AsmJit project <https://asmjit.com> // -// * Official AsmJit Home Page: https://asmjit.com -// * Official Github Repository: https://github.com/asmjit/asmjit -// -// Copyright (c) 2008-2020 The AsmJit Authors -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would be -// appreciated but is not required. -// 2. Altered source versions must be plainly marked as such, and must not be -// misrepresented as being the original software. -// 3. This notice may not be removed or altered from any source distribution. +// See asmjit.h or LICENSE.md for license and copyright information +// SPDX-License-Identifier: Zlib #ifndef ASMJIT_CORE_OSUTILS_H_INCLUDED #define ASMJIT_CORE_OSUTILS_H_INCLUDED @@ -31,22 +13,14 @@ ASMJIT_BEGIN_NAMESPACE //! \addtogroup asmjit_utilities //! \{ -// ============================================================================ -// [asmjit::OSUtils] -// ============================================================================ - //! Operating system utilities. namespace OSUtils { //! Gets the current CPU tick count, used for benchmarking (1ms resolution). ASMJIT_API uint32_t getTickCount() noexcept; }; -// ============================================================================ -// [asmjit::Lock] -// ============================================================================ //! \cond INTERNAL - //! Lock. //! //! Lock is internal, it cannot be used outside of AsmJit, however, its internal @@ -72,11 +46,11 @@ public: Handle _handle; #endif - inline Lock() noexcept; - inline ~Lock() noexcept; + ASMJIT_FORCE_INLINE Lock() noexcept; + ASMJIT_FORCE_INLINE ~Lock() noexcept; - inline void lock() noexcept; - inline void unlock() noexcept; + ASMJIT_FORCE_INLINE void lock() noexcept; + ASMJIT_FORCE_INLINE void unlock() noexcept; }; //! \endcond |