llvm/compiler-rt/lib/rtsan/rtsan_context.cpp

//===--- rtsan_context.cpp - Realtime Sanitizer -----------------*- 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
//
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//

#include "rtsan/rtsan_context.h"
#include "rtsan/rtsan.h"

#include "sanitizer_common/sanitizer_allocator_internal.h"

#include <new>
#include <pthread.h>

usingnamespace__sanitizer;
usingnamespace__rtsan;

static pthread_key_t context_key;
static pthread_once_t key_once =;

// InternalFree cannot be passed directly to pthread_key_create
// because it expects a signature with only one arg
static void InternalFreeWrapper(void *ptr) {}

static __rtsan::Context &GetContextForThisThreadImpl() {}

__rtsan::Context::Context() = default;

void __rtsan::Context::RealtimePush() {}

void __rtsan::Context::RealtimePop() {}

void __rtsan::Context::BypassPush() {}

void __rtsan::Context::BypassPop() {}

bool __rtsan::Context::InRealtimeContext() const {}

bool __rtsan::Context::IsBypassed() const {}

Context &__rtsan::GetContextForThisThread() {}