|
MLIR 23.0.0git
|
Safely calls Python initialization code on first use, avoiding deadlocks. More...
#include "mlir/Bindings/Python/NanobindUtils.h"
Public Types | |
| typedef std::unique_ptr< T >(* | F) () |
Public Member Functions | |
| SafeInit (F init_fn) | |
| T & | get () |
Safely calls Python initialization code on first use, avoiding deadlocks.
Definition at line 40 of file NanobindUtils.h.
| typedef std::unique_ptr< T >(* mlir::python::SafeInit< T >::F) () |
Definition at line 42 of file NanobindUtils.h.
|
inlineexplicit |
Definition at line 44 of file NanobindUtils.h.
|
inline |
Definition at line 46 of file NanobindUtils.h.
References result.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::classmethod().