How to clone QJSEngine?
Unsolved
General and Desktop
-
You can create several instances but you cannot copy them. Though AFAIK, there's usually no reason to have more than one. What is your use case ?
-
@SGaist Multithreading with requirement of no interlocking. Because QJSEngine is not thread safe, the only way I see for now is to clone original prepared instance for each worker thread. Anything else requires syncronisation between threads, which means interlocking.