Original Post
Hi all,
In C++, can one specify that a piece of code in a thread always has to be executed as a whole (i.e. the control must not switch from this thread to another one when it is executing this specific piece of code)? I am doing some timing in a thread, and this code should always be executed as a whole, otherwise (obviously) the timing would be wrong. Is this possible? Anyone any ideas? Thanks in advance!
PS I am already using Mutexes for controlling the access to shared variables and resources.
Greetings,
BombSheLL