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

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

#pragma once

#include "intrinsics.h"
#include "sysinfo.h"
#include "atomic.h"

namespace embree
{
  /*! system barrier using operating system */
  class BarrierSys
  {};

  /*! fast active barrier using atomic counter */
  struct BarrierActive 
  {};

  /*! fast active barrier that does not require initialization to some number of threads */
  struct BarrierActiveAutoReset
  {};

  class LinearBarrierActive
  {};
}