folly::DelayedDestructionBase::getDestructorGuardCount

Get the number of DestructorGuards currently protecting this object.

Synopsis

Declared in <folly/io/async/DelayedDestructionBase.h>

uint32_t
getDestructorGuardCount() const;

Description

This is primarily intended for debugging purposes, such as asserting that an object has at least 1 guard.

Return Value

The number of active DestructorGuards.