template <typename Callable>

class CallFromDestructor

Defined at line 178 of file ../../src/graphics/display/lib/driver-utils/post-task.h

Move-only holder that calls a callback when being destroyed.

This helper was designed for performing cleanup that must be ordered after

other code submitted via `PostTask()`. In particular, instances are suitable

to be captured by lambdas used to construct the fit::inline_callback

arguments passed to `PostTask()`.

Public Methods

void CallFromDestructor<Callable> (const CallFromDestructor<Callable> & )

Move construction support is needed for the fit::inline_callback instances

that use CallFromDestructor in lambda captures.

Defined at line 188 of file ../../src/graphics/display/lib/driver-utils/post-task.h

CallFromDestructor<Callable> & operator= (const CallFromDestructor<Callable> & )

Defined at line 190 of file ../../src/graphics/display/lib/driver-utils/post-task.h

CallFromDestructor<Callable> & operator= (CallFromDestructor<Callable> && rhs)

Defined at line 191 of file ../../src/graphics/display/lib/driver-utils/post-task.h

void CallFromDestructor<Callable> (Callable callback)

`callback` will be called when this instance is destroyed.

Defined at line 309 of file ../../src/graphics/display/lib/driver-utils/post-task.h

void CallFromDestructor<Callable> (CallFromDestructor<Callable> && rhs)

Defined at line 313 of file ../../src/graphics/display/lib/driver-utils/post-task.h

void ~CallFromDestructor<Callable> ()

Defined at line 319 of file ../../src/graphics/display/lib/driver-utils/post-task.h