Hi,
I have a dll that can't re-enter, that is, it is not thread safe. But I need to call it repeatedly and it takes a lot of CPU time. So I am trying to use QtConcurrent and QLibrary.
However, QLibrary opens same dll and shares among themself. How can I make them not share?
The attached code gives same "addTo" and "getResult", and final results are wrong.
addTo = 0x7fcf487e063c, getResult = 0x7fcf487e0654
addTo = 0x7fcf487e063c, getResult = 0x7fcf487e0654
addTo = 0x7fcf487e063c, getResult = 0x7fcf487e0654
addTo = 0x7fcf487e063c, getResult = 0x7fcf487e0654
addTo = 0x7fcf487e063c, getResult = 0x7fcf487e0654
Any solution?
Thanks!
Bookmarks