Since you access this variable for writing only from 1 thread (if I understand your code well) you don't need to use critical section. The worst situation that might occur is that 1 more iteration is performed after the Terminated flag is set.
A boolean variable should be OK without a critical section.
However would it really hurt you to use a critical section in terms of performance if you are really worried?
0
aureliuhAuthor Commented:
Thank you
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.