Interface to signal the phases for the Python virtual machine. More...
#include <EditorPythonConsoleBus.h>
Public Member Functions | |
AZ_RTTI (EditorPythonEventsInterface, "{F50AE641-2C80-4E07-B4B3-7CB34FFAB393}") | |
virtual bool | StartPython (bool silenceWarnings=false)=0 |
Signal the Python handler to start. | |
virtual bool | StopPython (bool silenceWarnings=false)=0 |
Signal the Python handler to stop. | |
virtual bool | IsPythonActive ()=0 |
Query to determine if the Python VM has been initialized indicating an active state. | |
virtual void | WaitForInitialization () |
Determines if the caller needs to wait for the Python VM to initialize (non-main thread only) | |
virtual void | ExecuteWithLock (AZStd::function< void()> executionCallback)=0 |
Acquires the Python global interpreter lock (GIL) and execute the callback. | |
virtual bool | TryExecuteWithLock (AZStd::function< void()> executionCallback)=0 |
Protected Member Functions | |
EditorPythonEventsInterface (EditorPythonEventsInterface &&)=delete | |
EditorPythonEventsInterface & | operator= (EditorPythonEventsInterface &&)=delete |
Interface to signal the phases for the Python virtual machine.
|
pure virtual |
Tries to acquire the Python global interpreter lock (GIL) and execute the callback.