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

API reference / Platform

FileOptions struct

How to open a file, on every platform alike.

On this page
Use
import ThinkMeta.ConcurrentTasks.Platform.FileOptions;
Namespace
ThinkMeta::ConcurrentTasks::Platform
Platforms
Windows, Linux

Syntax

Fields

access

What the opener may do with the file.

Syntax

FileAccess access = FileAccess::Read;

creation

What happens when the file exists, or does not.

Syntax

FileCreation creation = FileCreation::OpenExisting;

unbuffered

Past the system's cache (FILE_FLAG_NO_BUFFERING, O_DIRECT): buffers, offsets and lengths must then be multiples of the sector size.

Syntax

bool unbuffered = false;

shareRead

Windows: others may read the file meanwhile (FILE_SHARE_READ). Linux has no share modes.

Syntax

bool shareRead = true;

shareWrite

Windows: others may write the file meanwhile (FILE_SHARE_WRITE). Linux has no share modes.

Syntax

bool shareWrite = false;

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