---
name: "rtapi_task_wait"
section: "3rtapi"
platform: "linux"
package: "linuxcnc-uspace-dev"
version: "1:2.9.4-2+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rtapi_task_wait"
---

# rtapi\_task\_wait(3rtapi)

suspend execution of this periodic task

## NAME

rtapi\_task\_wait - suspend execution of this periodic task

## SYNTAX

void rtapi\_task\_wait()

## DESCRIPTION

**rtapi\_task\_wait** suspends execution of the current task until the next period.  The task must be periodic.  If not, the result is undefined.

## REALTIME CONSIDERATIONS

Call only from within a periodic realtime task.

## RETURN VALUE

None

## SEE ALSO

**[rtapi\_task\_start(3rtapi)](/rtapi_task_start/3rtapi.md)**, **[rtapi\_task\_pause(3rtapi)](/rtapi_task_pause/3rtapi.md)**
