GNOME Bugzilla – Bug 697550
clock: Winpthreads compatibility
Last modified: 2013-04-09 18:35:30 UTC
libwinpthreads (from mingw-w64 project) has POSIX clock functions (clock_gettime and clock_getres). They could be used in GStreamer.
Created attachment 240941 [details] [review]
Also check for clock_gettime in libpthread
Review of attachment 240941 [details] [review]:
@@ +461,3 @@
+ ], [
+ AC_CHECK_LIB(pthread, clock_gettime, [
+ AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
That #define is used nowhere :) The patch is correct of course but without using that #define somewhere in the code it feels a bit useless.
Could you combine this with the POSIX_TIMERS stuff that is checked/defined below?
Nevermind, that was in your other bug already ;)
Author: Руслан Ижбулатов <firstname.lastname@example.org>
Date: Mon Apr 8 13:14:35 2013 +0400
configure: Also check for clock_gettime in libpthread
libwinpthreads provides POSIX time API.
It also provides libpthread alias for itself, for compatibility, so that
is what we will link with.