godot/thirdparty/embree/common/sys/mutex.h

// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

#pragma once

#include "platform.h"
#include "intrinsics.h"
#include "atomic.h"

#define CPU_CACHELINE_SIZE
namespace embree
{
  /*! system mutex */
  class MutexSys {};

  /*! spinning mutex */
  class SpinLock
  {};

  class PaddedSpinLock : public SpinLock
  {};
  /*! safe mutex lock and unlock helper */
  template<typename Mutex> class Lock {};
}