imagine some complex control system, input -> logic -> output. inputs can be (at least virtually) be given in parallel and have to be executed in parallel. so one end up with lot of different threads, maybe each responsible for a special task.
The design of the system expects that some data is changed / functions are called only by a special thread.
Is there any approved way of ensuring that, beside just to document it inside the code ()?Code:// call this only from thread foo, else everything breaks
Thank you in advance!