Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

14.1.78. 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.