---
name: "SDL_SignalAsyncIOQueue"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_SignalAsyncIOQueue"
---

# SDL\_SignalAsyncIOQueue(3)

Wake up any threads that are blocking in SDL\_WaitAsyncIOResult ().

## NAME

SDL\_SignalAsyncIOQueue - Wake up any threads that are blocking in  **SDL\_WaitAsyncIOResult** ().

## HEADER FILE

Defined in SDL3/SDL\_asyncio.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**void SDL\_SignalAsyncIOQueue(SDL\_AsyncIOQueue \*queue);**

## DESCRIPTION

This will unblock any threads that are sleeping in a call to

**SDL\_WaitAsyncIOResult**\
  for the specified queue, and cause them to return from that function.

This can be useful when destroying a queue to make sure nothing is touching it indefinitely. In this case, once this call completes, the caller should take measures to make sure any previously-blocked threads have returned from their wait and will not touch the queue again (perhaps by setting a flag to tell the threads to terminate and then using

**SDL\_WaitThread** () to make sure they've done so).

## FUNCTION PARAMETERS

- *queue*

  the async I/O task queue to signal.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_WaitAsyncIOResult**(3)](/SDL_WaitAsyncIOResult/3.md)
