|
BehaviorTree
Core Library to create and execute Behavior Trees
|
Synchronization gate used to coordinate callbacks with object teardown. More...
#include <callback_gate.h>
Classes | |
| class | Guard |
| RAII helper that signals the completion of a callback entered with tryStart() More... | |
Public Types | |
| using | Ptr = std::shared_ptr< CallbackGate > |
Synchronization gate used to coordinate callbacks with object teardown.
Callbacks enter the gate with tryStart() and must signal completion when done (use Guard for RAII). During teardown, call close() to reject new callbacks and closeAndDrain() to block until the callbacks still running have completed.