logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

OSSL_sleep - delay execution for a specified number of milliseconds

Description

OSSL_sleep() is a convenience function to delay execution of the calling thread for (at least) millis
       milliseconds.  The delay is not guaranteed; it may be affected by system activity, by the time spent
       processing the call, limitation on the underlying system call parameter size or by system timer
       granularity.

       In particular on Windows the maximum amount of time it will sleep is 49 days and on systems where the
       regular sleep(3) is used as the underlying system call the maximum sleep time is about 136 years.

History

OSSL_sleep() was added in OpenSSL 3.2.

Name

       OSSL_sleep - delay execution for a specified number of milliseconds

Return Values

OSSL_sleep() does not return any value.

Synopsis

        #include <openssl/crypto.h>

        void OSSL_sleep(uint64_t millis);

See Also