aoc::util

Module thread

Source
Expand description

Utility methods to spawn a number of scoped threads equals to the number of cores on the machine. Unlike normal threads, scoped threads can borrow data from their environment.

Structsยง

  • Intentionally force alignment to 128 bytes to make a best effort attempt to place each atomic on its own cache line. This reduces contention and improves performance for common CPU caching protocols such as MESI.

Functionsยง