[PATCH weston 12/12] libweston: Use struct timespec for compositor time

Pekka Paalanen ppaalanen at gmail.com
Fri Nov 24 14:06:27 UTC 2017


On Thu, 16 Nov 2017 18:21:01 +0200
Alexandros Frantzis <alexandros.frantzis at collabora.com> wrote:

> Change weston_compositor_get_time to return the current compositor time
> as a struct timespec. Also, use clock_gettime (with CLOCK_REALTIME) to
> get the time, since it's equivalent to the currently used gettimeofday
> call, but returns the data directly in a struct timespec.
> 
> This commit is part of a larger effort to transition the Weston codebase
> to struct timespec.
> 
> Signed-off-by: Alexandros Frantzis <alexandros.frantzis at collabora.com>
> ---
>  compositor/text-backend.c  | 11 +++++++----
>  desktop-shell/shell.c      |  8 ++++----
>  desktop-shell/shell.h      |  2 +-
>  libweston/compositor-rdp.c | 10 +++++-----
>  libweston/compositor-x11.c | 21 ++++++++++-----------
>  libweston/compositor.c     | 10 +++-------
>  libweston/compositor.h     |  4 ++--
>  7 files changed, 32 insertions(+), 34 deletions(-)

Hi,

patches 6-12 are:
Reviewed-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

I think it would be fine to send v2 of just patch 5, and then I can
land all this on Monday.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20171124/f22f2c9e/attachment-0001.sig>


More information about the wayland-devel mailing list