struct ReadToken

Defined at line 73 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 75 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h

ReadToken & operator= (const ReadToken & )

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

void ReadToken (ReadToken && other)

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

ReadToken & operator= (ReadToken && other)

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

void ~ReadToken ()

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

Friends

class ThreadSampler