class ScopedThreadChecker

Defined at line 61 of file ../../src/media/audio/services/common/thread_checker.h

Allows using ThreadChecker in a scoped way that integrates with

clang's thread safety analysis:

ThreadChecker thread_checker;

void foo() TA_REQ(thread_checker);

void bar() {

// This line will crash if not called from the correct thread.

ScopedThreadChecker checker(thread_checker);

foo();

}

Public Methods

void ScopedThreadChecker (const ThreadChecker & checker)

Defined at line 63 of file ../../src/media/audio/services/common/thread_checker.h

void ~ScopedThreadChecker ()

Defined at line 66 of file ../../src/media/audio/services/common/thread_checker.h