Preliminary. ThinkMeta ConcurrentTasks and this documentation are preliminary; everything is subject to change.

API reference / Core

IoRequest struct

One asynchronous operation, described by the caller and carried out by the core.

On this page
Use
#include <ThinkMeta.ConcurrentTasks/Core.h>
Namespace
ThinkMeta::ConcurrentTasks::AsyncIo
Platforms
Linux

Syntax

struct IoRequest

Remarks

Usually the base of the caller's own request object, which the routine casts back to. The request, its buffer and whatever offset points to belong to the operation from SubmitIo until the routine has been called.

Fields

routine

Called when the operation has completed; required.

Syntax

buffer

The data, or the structure the operation names (see IoOperation).

Syntax

void* buffer;

offset

The file offset of Read and Write; see IoOperation for the others; else 0.

Syntax

std::uint64_t offset;

fd

The file or socket.

Syntax

std::int32_t fd;

length

The number of bytes, or the size of what buffer points to.

Syntax

std::uint32_t length;

flags

The flags of the operation (see IoOperation); else 0.

Syntax

std::uint32_t flags;

operation

The operation.

Syntax

IoOperation operation;

reserved8

Belongs to the core; 0 before the request is submitted.

Syntax

std::uint8_t reserved8[3];

reserved

Belongs to the core; 0 before the request is submitted.

Syntax

std::uint64_t reserved[2];

Generated from ThinkMeta.ConcurrentTasks.API @ da816bc (2026-11-06).