You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/EditorPythonBindings/Code/Source
moraaar f551e69b2b
PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904)
- Protected python execution of OnEventGenericHook by trying to lock the GIL and show a descriptive error when it was not possible to lock.
- Improved mechanism to lock python mutex and GIL in PhytonSystemComponent. Acquiring/releasing GIL once per thread.
- Added unit test to verify errors are fired when trying to execute OnEventGenericHook from another thread (as it should not able to acquire the GIL).
- Improved python threading tests to actually using python buses.

Signed-off-by: moraaar moraaar@amazon.com
4 years ago
..
Platform Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
EditorPythonBindingsModule.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonCommon.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonLogSymbolsComponent.cpp {LYN-2336} Fix: Python Console script help opens empty (#3060) 4 years ago
PythonLogSymbolsComponent.h {LYN-2336} Fix: Python Console script help opens empty (#3060) 4 years ago
PythonMarshalComponent.cpp Gems/EditorPythonBindings 4 years ago
PythonMarshalComponent.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonProxyBus.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonProxyBus.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonProxyObject.cpp {LYN-2336} Fix: Python Console script help opens empty (#3060) 4 years ago
PythonProxyObject.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonReflectionComponent.cpp {LYN-2336} Fix: Python Console script help opens empty (#3060) 4 years ago
PythonReflectionComponent.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonSymbolsBus.h {LYN-2336} Fix: Python Console script help opens empty (#3060) 4 years ago
PythonSystemComponent.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonSystemComponent.h PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonTypeCasters.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonUtility.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonUtility.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago