work

package
v0.0.0-...-9c88ebf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package work is not specific to geometry logic. It is used to parallelize work, which is useful when doing animation or rendering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(worker func(coreIdx int))

Run takes a worker that will operate on some workload until complete and runs it on each core.

func RunRange

func RunRange(max int, worker func(rangeIdx, coreIdx int))

RunRange will call worker in parallel with every int from 0 to max (0 inclusive, max exclusive).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL