summaryrefslogtreecommitdiff
path: root/src/runtime/runtime.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/runtime.go')
-rw-r--r--src/runtime/runtime.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go
index d4f7c64a5..dbaea45a6 100644
--- a/src/runtime/runtime.go
+++ b/src/runtime/runtime.go
@@ -39,3 +39,11 @@ func tickspersecond() int64 {
func makeStringSlice(n int) []string {
return make([]string, n)
}
+
+// TODO: Move to parfor.go when parfor.c becomes parfor.go.
+func parforalloc(nthrmax uint32) *parfor {
+ return &parfor{
+ thr: &make([]parforthread, nthrmax)[0],
+ nthrmax: nthrmax,
+ }
+}