we have one thread running the opc-server (UA_Server_run(...)) and a main application thread. I was wondering whether it is safe to add/remove nodes from the main thread while the opc-server thread is running.
Example: opc-server thread is in a data-read callback for a given variable node and at the same time the main thread is deleting that node.
Will the stack make sure that the node is not deleted prior to exiting the callback ? Or do I have to take measures from application side (e.g. stopping the opc-server thread or use mutexes) ?