How to clone QJSEngine?
-
@Merssedes I am not a QJSEngine user, but you cannot clone a QObject (by design). You would have to create a new object and manually configure it to match. I do not see a simple way to achieve this.
-
@Merssedes I am not a QJSEngine user, but you cannot clone a QObject (by design). You would have to create a new object and manually configure it to match. I do not see a simple way to achieve this.
-
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 ?
-
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.