Sleep Reference

File
XSFoundation/include/XS/Functions/Sleep.h
Author
Jean-David Gadina - www.xs-labs.com
Copyright
© (c) 2020 - Jean-David Gadina - www.xs-labs.com
Date
Sunday, September 27, 2020

Overview

Sleep-related functions

Tasks

XSSleepMilliseconds

Requests the calling thread to be suspended for a number of milliseconds

XS_EXPORT void XSSleepMilliseconds( unsigned int msecs );

Parameters
  • msecs
    The number of milliseconds to sleep

XSSleepSeconds

Requests the calling thread to be suspended for a number of seconds

XS_EXPORT void XSSleepSeconds( unsigned int secs );

Parameters
  • secs
    The number of seconds to sleep

XSYield

Asks the implementation to reschedule the execution of threads

XS_EXPORT void XSYield( void );