ddovod / jet-live

c++ hot code reload for linux and macos
MIT License
411 stars 23 forks source link

Functions which is weak symbol will be hooked, is it nessasary? #51

Open demon90s opened 1 year ago

demon90s commented 1 year ago

Some functions, like template member functions, or normal member functions defined in a header file, would be as weak symbol.

When we write something like std::vector<std::string> , it will generate some code from compiler. If we hook these functions, is there any thread safe issue?

ddovod commented 4 months ago

As I mentioned in the readme, this library is not thread safe. I'm not completely understanding your specific case, but I'm sure it won't be thread safe as well because in this kind of applications thread safety is very complicated and not easily achievable, at least I didn't find the way to do this.