vxx2 / vlib / v3 / transform / transform_notd_parallel.v
9 lines · 8 sloc · 418 bytes · 057970b7fc13981239914ab17b890ab27ce24a95
Raw
1module transform
2
3// run_parallel_transform is the serial fallback compiled when the build does not
4// define `parallel` (no thread support). It transforms the closure-free function
5// bodies on the calling thread and reports that no threading happened.
6fn (mut t Transformer) run_parallel_transform(items []FnWorkItem, _base_nodes int, _base_children int) bool {
7 t.transform_pure_items_serial(items)
8 return false
9}
10