struct ReadToken

Defined at line 34 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h

A helper type to ensure we always call our Read functions in the order of PrepareRead,

ReadUserImpl, then FinishRead.

The only way to get a token is through PrepareRead. Calling ReadUserImpl requires a token, and

the only way to "disarm" the token (prevent an assert on destruction), is to pass it to

FinishRead.

Public Methods

void ReadToken (const ReadToken & )

Defined at line 36 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h

ReadToken & operator= (const ReadToken & )

Defined at line 37 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h

void ReadToken (ReadToken && other)

Defined at line 38 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h

ReadToken & operator= (ReadToken && other)

Defined at line 39 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h

void ~ReadToken ()

Defined at line 44 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h

Friends

class ThreadSamplerDispatcher