class DestructionSentinel

Defined at line 22 of file ../../src/lib/callback/destruction_sentinel.h

Helper class to determine if a class has been deleted while running some

code.

To use a DestructionSentinel, one must add a DestructionSentinel member

to the class susceptible to be deleted while running code. Any code

susceptible to delete the class must be run inside the |DestructedWhile|

method, and the method must do an early return if |DestructedWhile| returns

|true|.

Public Methods

void DestructionSentinel ()

Defined at line 9 of file ../../src/lib/callback/destruction_sentinel.cc

void ~DestructionSentinel ()

Defined at line 11 of file ../../src/lib/callback/destruction_sentinel.cc

bool DestructedWhile (const fit::closure & closure)

Executes |closure| and returns |true| if the sentinel has been destroyed

while executing it.

Defined at line 29 of file ../../src/lib/callback/destruction_sentinel.h