---
name: "complete"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/complete/9"
---

# complete(9)

signals a single thread waiting on this completion

## NAME

complete - signals a single thread waiting on this completion

## SYNOPSIS

**void complete(struct completion \*** *x***);**

## ARGUMENTS

*x*

holds the state of this particular completion

## DESCRIPTION

This will wake up a single thread waiting on this completion. Threads will be awakened in the same order in which they were queued.

See also **complete\_all**, **wait\_for\_completion** and related routines.

It may be assumed that this function implies a write memory barrier before changing the task state if and only if any tasks are woken up.

## COPYRIGHT
