[PATCH xserver v2] xwayland: Use the CLOCK_MONOTONIC clock

Daniel Stone daniel at fooishbar.org
Mon May 9 12:01:27 UTC 2016


Hi,

On 16 March 2016 at 08:11, Jonas Ã…dahl <jadahl at gmail.com> wrote:
> @@ -180,6 +183,10 @@ extern _X_EXPORT void ListenOnOpenFD(int /* fd */ , int /* noxauth */ );
>
>  extern _X_EXPORT Bool AddClientOnOpenFD(int /* fd */ );
>
> +#ifdef MONOTONIC_CLOCK
> +extern _X_EXPORT void ForceClockId(clockid_t /* forced_clockid */);
> +#endif
> +
>  extern _X_EXPORT CARD32 GetTimeInMillis(void);
>  extern _X_EXPORT CARD64 GetTimeInMicros(void);

Thinking about it, one nitpick is that it shouldn't be declared
_X_EXPORT, since there is no reason for modules to use it.

Cheers,
Daniel


More information about the xorg-devel mailing list