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

joe joeedh at gmail.com
Sat Jan 23 12:06:29 CET 2010


Isn't time in whole seconds?

Joe

On Fri, Jan 22, 2010 at 8:09 PM, Mitchell Stokes <mogurijin at gmail.com> wrote:
> 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.
>
> http://www.pasteall.org/10517/diff
>
> Cheers,
> Mitchell Stokes (Moguri)
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list