Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

16.1.1.72. usleep()

Prototype

int usleep (unsigned int us)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

No.

Include

<unistd.h>

Description

The usleep() function blocks until at least us microseconds have elapsed.

Return

The usleep() function returns zero on success, or –1 otherwise. If an error occurs, errno is set to indicate the cause. The current implementation always succeeds.