Module sync.stdatomic stdlib

sync.stdatomic
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
0
Imported by:
1
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

This section is empty.

Imported by

  • Standard Library

Aliases

This section is empty.

Constants

#constant used

pub const used = 1

Sum types

This section is empty.

Functions

#fn add_i64

fn add_i64(ptr &i64, delta int) i64

add_i64 adds provided delta as an atomic operation

#fn add_u64

fn add_u64(ptr &u64, delta int) u64

add_u64 adds provided delta as an atomic operation

#fn load_i64

fn load_i64(ptr &i64) i64

atomicall get a value

#fn load_u64

fn load_u64(ptr &u64) u64

atomicall get a value

#fn store_i64

fn store_i64(ptr &i64, val i64)

atomicall set a value

#fn store_u64

fn store_u64(ptr &u64, val u64)

atomic store/load operations have to be used when there might be another concurrent access atomicall set a value

#fn sub_i64

fn sub_i64(ptr &i64, delta int) i64

add_i64 subtracts provided delta as an atomic operation

#fn sub_u64

fn sub_u64(ptr &u64, delta int) u64

sub_u64 subtracts provided delta as an atomic operation

Structs

This section is empty.

Interfaces

This section is empty.

Enums

This section is empty.