Hi Mathieu,
Btw^2, I'd like to know, how does malloc() work with pthreads? how does it achieve threadsafety? what's the impact on realtime?
The MSVC memory allocation routines at least use quite complicated fully lockfree algorithms. Given that, the impact on realtime shouldn't be to big.