diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2020-05-26 15:58:13 +0200 |
---|---|---|
committer | Tobias Klauser <tobias.klauser@gmail.com> | 2020-05-26 22:06:26 +0000 |
commit | 4abec2a48070da6ca9b8cf53888ad993e0ee82ef (patch) | |
tree | a9466ff00a7a0367749cfb909f3530e936dff9ab /src/runtime/testdata | |
parent | b5bf2f068251355538b66d36cc787cf59ced55be (diff) | |
download | go-4abec2a48070da6ca9b8cf53888ad993e0ee82ef.tar.gz go-4abec2a48070da6ca9b8cf53888ad993e0ee82ef.zip |
runtime, time: gofmt
Change-Id: Ib36a5f239db5af497aae122eba049c15d0d4c4a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/235139
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/testdata')
-rw-r--r-- | src/runtime/testdata/testprog/lockosthread.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/testdata/testprog/lockosthread.go b/src/runtime/testdata/testprog/lockosthread.go index 098cc4dd72..e9d7fdbc44 100644 --- a/src/runtime/testdata/testprog/lockosthread.go +++ b/src/runtime/testdata/testprog/lockosthread.go @@ -220,7 +220,7 @@ func LockOSThreadTemplateThreadRace() { }() // Try to synchronize both LockOSThreads. - start := time.Now().Add(10*time.Millisecond) + start := time.Now().Add(10 * time.Millisecond) var wg sync.WaitGroup wg.Add(2) @@ -232,10 +232,10 @@ func LockOSThreadTemplateThreadRace() { // Add work to the local runq to trigger early startm // in handoffp. - go func(){}() + go func() {}() runtime.LockOSThread() - runtime.Gosched() // add a preemption point. + runtime.Gosched() // add a preemption point. wg.Done() }() } |