---
name: "pthread_wait_np"
section: "3"
platform: "linux"
package: "rtlinux"
version: "2.0rel-1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/pthread_wait_np"
---

# pthread\_wait\_np(3)

end execution for the current period

## NAME

pthread\_wait\_np - end execution for the current period

## SYNOPSIS

**#include \<rtl\_sched.h\>**

**int pthread\_wait\_np(void);**

## DESCRIPTION

This function is a non-portable Real-Time Linux extension. **pthread\_wait\_np** ends execution of the currently running real-time thread until the start of the next period. The thread was previously marked for execution using **pthread\_make\_periodic\_np**.

The thread gives up control until the next time period.

## RETURN VALUE

Always returns 0.

## ERRORS

None.

## SEE ALSO

[**pthread\_make\_periodic\_np**(3)](/pthread_make_periodic_np/3.md), [**pthread\_suspend\_np**(3)](/pthread_suspend_np/3.md)
