-
Emil Velikov authored
Will be used to simplify/abstract the threads differences across posix/win32 waffle. Based upon https://gist.github.com/2223710 with modifications from mesa: - retain XP compatability - add temporary hack for static mutex initializers (as they are not part of the stack but still widely used internally) - make TIME_UTC a conditional macro (some system headers already define it, so this prevents conflict) - fix missing pthread_mutex_timedlock declaration warnings on MacOSX - do not use pthread_mutex_timedlock on NetBSD - fix nano to milisecond conversion, per https://gist.github.com/yohhoy/2223710/#comment-710118 - don't implement thrd_current on Windows - don't include assert.h if the assert macro is already defined v2: Whitespace cleanup, enable PIC. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2f74f40f