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

API reference

Platform

One set of names for files, errors, sockets, threads, mutexes, virtual memory and the clock on Windows and Linux.

NameDescription
Functions and constants functions Free functions and constants of Platform.
Error alias Names and predicates for the platform's error codes.
ErrorCode alias An error code of the platform; Error::Success on success.
ErrorException alias Carries an error of the platform out of code that has no error return.
File alias Owns one open file of the platform.
FileAccess enum What the opener may do with the file.
FileCreation enum What happens when the file exists, or does not.
FileOptions struct How to open a file, on every platform alike.
Mutex class A lock of the operating system, held for short sections.
MutexGuard class Holds a Mutex for a scope.
Socket alias Owns one socket of the platform.
SocketError alias Names and predicates of the socket error codes: Winsock's on Windows, errno elsewhere.
SocketShutdown struct Which side Shutdown ends: SD_RECEIVE/SD_SEND/SD_BOTH on Windows, SHUT_RD/SHUT_WR/SHUT_RDWR elsewhere.
VirtualMemory alias Reserved address space with pages committed and decommitted on demand.