Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.7.0
-
None
-
Qt 5.7.0
Windows 10
Visual Studio 2015
Description
While working with QJSEngine in a threaded environment, I noticed several crashes that made me think that it was not thread-safe. After a quick search on this tracker, I found several issues that confirm this. However the documentation doesn't state anything about it.
My suggestion is to clarify the thread-safe status of QJSEngine and all related classes in the documentation. If it's not thread-safe, then explain how to efficiently protect it (ie. what classes / functions must be protected from concurrent access).
I've also seen that V8 itself had specific mechanisms to work in threaded environments, maybe it would be a good (more efficient) idea to propagate them in the Qt API?