[Bf-committers] gettimeofday in thread.c's wait_timeout

Mitchell Stokes mogurijin at gmail.com
Sat Jan 23 05:09:55 CET 2010

Hello Blender Devs,

A recent commit to threads.c added a function called wait_timeout. In
this function gettimeofday() is used, which MSVC does not define.
However, it looks like to me that time() could be used instead of
gettimeofday(). Also, timeval.tv_usec is in microseconds while I think
the code was using it as milliseconds. So, here is a patch to use
time(). It compiles on MSVC, but I didn't test it much beyond that.


Mitchell Stokes (Moguri)

More information about the Bf-committers mailing list