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/Tests
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
..
test_package Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
CustomTypeBindingBusTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
EditorPythonBindingsTest.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
EditorPythonBindingsTest.py Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
EditorPythonBindingsTestWithArgs.py Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonAssetTypesTests.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonAssociativeTests.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonBindingLibTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonContainerAnyTests.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonDictionaryTests.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonGlobalsTests.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonLogSymbolsComponentTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonPairTests.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonPairTests.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonProxyBusTests.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonProxyObjectTests.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonReflectionComponentTests.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonTestingUtility.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
PythonThreadingTests.cpp PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
PythonTraceMessageSink.h PythonProxyNotificationHandler::OnEventGenericHook acquires the Python GIL before executing (#3904) 4 years ago
__init__.py Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago