SDL_SignalAsyncIOQueue(3)

SDL_SignalAsyncIOQueue3

Wake up any threads that are blocking in sdl_waitasyncioresult ().

Usage

#include "SDL3/SDL.h"

void SDL_SignalAsyncIOQueue(SDL_AsyncIOQueue *queue);

Header file

Defined in SDL3/SDL_asyncio.h

Overview

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.