class ASTUnit::ConcurrencyState

Declaration

class ASTUnit::ConcurrencyState { /* full declaration omitted */ };

Description

Allows us to assert that ASTUnit is not being used concurrently, which is not supported. Clients should create instances of the ConcurrencyCheck class whenever using the ASTUnit in a way that isn't intended to be concurrent, which is just about any usage. Becomes a noop in release mode; only useful for debug mode checking.

Declared at: clang/include/clang/Frontend/ASTUnit.h:392

Member Variables

private void* Mutex

Method Overview

Methods

ConcurrencyState()

Declared at: clang/include/clang/Frontend/ASTUnit.h:396

void finish()

Declared at: clang/include/clang/Frontend/ASTUnit.h:400

void start()

Declared at: clang/include/clang/Frontend/ASTUnit.h:399

~ConcurrencyState()

Declared at: clang/include/clang/Frontend/ASTUnit.h:397