[ovs-git] [openvswitch/ovs] ca3cc1: util: Add high resolution sleep support.

GitHub noreply at github.com
Tue Nov 28 23:53:36 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: ca3cc1aad46ebc1d2ab653fb75b1affb67d8a6e8
      https://github.com/openvswitch/ovs/commit/ca3cc1aad46ebc1d2ab653fb75b1affb67d8a6e8
  Author: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
  Date:   2017-11-28 (Tue, 28 Nov 2017)

  Changed paths:
    M lib/timeval.c
    M lib/timeval.h
    M lib/util.c
    M lib/util.h

  Log Message:
  -----------
  util: Add high resolution sleep support.

This commit introduces xnanosleep() for the threads needing high
resolution sleep timeouts.

usleep() that provides microsecond granularity is deprecated and threads
wanting sub-second(ms,us,ns) granularity can use this implementation.

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
Acked-by: Alin Gabriel Serdean <aserdean at ovn.org>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list