delve/_fixtures/testthreads.go
Derek Parker 4c95bf7302 (Mostly) working multithreaded tracing implementation
Areas that need improving:

* Code cleanup
* Promote breakpoints back out of thread context
* Fix potential bug in "Next" implementation, when thread contexts
  switch
2014-10-25 08:59:22 -05:00

22 lines
252 B
Go

package main
import (
"fmt"
"sync"
)
func anotherthread(wg *sync.WaitGroup) {
i := 1 * 5 / 39020
fmt.Println(i)
wg.Done()
}
func main() {
var wg sync.WaitGroup
for i := 0; i < 100000; i++ {
wg.Add(1)
go anotherthread(&wg)
}
wg.Wait()
}