The thread handle typedef and its waiter were only registered by `spawn`. A `[]thread T` that is waited on in code whose only `spawn` is compiled out by `$if` referenced both without defining them. The driver does this with its prestarted FastC workers, which only macOS spawns, so FastC builds of cmd/v failed on Linux with `'__vf_thread_kF_5f_5fFastcPrestartedCUnits' undeclared`. `.wait()` lowering now registers the typedef and waiter when the file has not done so yet.
page, title, index
| page | title | index |
|---|---|---|
| index | V standard library documentation | V stdlib |
This site contains the documentation for the standard library of modules
included with the V language. Also commonly referred
to as vlib, as that is the root directory for these modules in the V
repository.
If you were looking for documentation for the language itself, the builtin types, operators, et. al., please use the V documentation link.
Some included modules depend on third party libraries, and these are kept
separate in the thirdparty directory at the root level of the source
repository.
Note that the builtin module is
implicitly imported by default in V, so you do not need to have a specific
import statement to use any of the features of that module.