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

# rt\_task\_wait(3)

end execution for the current period

## NAME

rt\_task\_wait - end execution for the current period

## WARNING

This is RTL v1.x compatibility function. Please do not use it for new programs.

## SYNOPSIS

```
#define MODULE
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <linux/errno.h>
#include <linux/rt_sched.h>
```

**int rt\_task\_wait(void);**

## DESCRIPTION

**rt\_task\_wait** ends execution of the currently running real-time task until the start of the next period.  The task was previously marked for execution using **rt\_task\_make\_periodic**.

The task is not suspended; this is done instead by **rt\_task\_suspend**. Instead, it simply gives up control until the next time period.

## RETURN VALUE

Always returns 0.

## ERRORS

None.

## SEE ALSO

[**rt\_get\_time**(3)](/rt_get_time/3.md), [**rt\_task\_delete**(3)](/rt_task_delete/3.md), [**rt\_task\_init**(3)](/rt_task_init/3.md), [**rt\_task\_make\_periodic**(3)](/rt_task_make_periodic/3.md), [**rt\_task\_suspend**(3)](/rt_task_suspend/3.md)
