---
name: "unqueue_me"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/unqueue_me"
---

# unqueue\_me(9)

Remove the futex\_q from its futex\_hash\_bucket

## NAME

unqueue\_me - Remove the futex\_q from its futex\_hash\_bucket

## SYNOPSIS

**int unqueue\_me(struct futex\_q \*** *q***);**

## ARGUMENTS

*q*

The futex\_q to unqueue

## DESCRIPTION

The q-\>lock\_ptr must not be held by the caller. A call to **unqueue\_me** must be paired with exactly one earlier call to **queue\_me**.

## RETURN

1 - if the futex\_q was still queued (and we removed unqueued it); 0 - if the futex\_q was already removed by the waking thread

## AUTHOR

**Rusty Russell** \<rusty@rustcorp.com.au\>

Author.

## COPYRIGHT
