5 hours ago, VirtualPuppet said:
If you want to be very performance aware, using rdtsc.
I found some great articles about rdtsc:
I don't need time performance measurement, for that GetTickCount would do the trick;
if the difference is less then 1 (ms) all is ok.
So far the CreateThread on a loop seems to be the fastest solution!