• Mans Rullgard's avatar
    lavu: add av_usleep() function · d3d3a32c
    Mans Rullgard authored
    This function implements a delay using the first available
    of the following functions:
    
    - nanosleep()
    - usleep()
    - Sleep() (Windows)
    
    The conditional #includes in time.c are simplified by including
    unistd.h and windows.h whenever they are available rather than
    having these lines triggered by specific functions.
    Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
    d3d3a32c
time.c 1.72 KB