Skip to content

std::thread

OS-thread scheduling hints and CPU introspection; user concurrency uses goroutines, not thread spawning.

API details and source

The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.

Item Canonical signature or declaration Description
num_cpus fn num_cpus() -> i64 Returns the number of logical CPUs available.
yield_now fn yield_now() -> () Hints to the scheduler to switch to another runnable thread.