//===-- sanitizer_lfstack.h -=-----------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Lock-free stack. // Uses 32/17 bits as ABA-counter on 32/64-bit platforms. // The memory passed to Push() must not be ever munmap'ed. // The type T must contain T *next field. // //===----------------------------------------------------------------------===// #ifndef SANITIZER_LFSTACK_H #define SANITIZER_LFSTACK_H #include "sanitizer_internal_defs.h" #include "sanitizer_common.h" #include "sanitizer_atomic.h" namespace __sanitizer { template<typename T> struct LFStack { … }; } // namespace __sanitizer #endif // SANITIZER_LFSTACK_H