So the code for the backend (neroshop daemon) is not thread safe and sometimes random segment faults occur and I'd often get deadlocks when using mutexes. I have no knowledge in threads or thread-safety practices so I need someone far more knowledgeable than me who can help make this as thread-safe as possible.
There are countless threads being used and many threads are within other threads which probably makes the issue much worse I think.
So the code for the backend (neroshop daemon) is not thread safe and sometimes random segment faults occur and I'd often get deadlocks when using mutexes. I have no knowledge in threads or thread-safety practices so I need someone far more knowledgeable than me who can help make this as thread-safe as possible.
There are countless threads being used and many threads are within other threads which probably makes the issue much worse I think.
src/daemon/main.cpp src/core/protocol/node.cpp src/core/protocol/routing_table.cpp src/core/protocol/key_mapper.cpp