• Brad Fitzpatrick's avatar
    sync: add Pool type · 8c6ef061
    Brad Fitzpatrick authored
    Adds the Pool type and docs, and use it in fmt.
    This is a temporary implementation, until Dmitry
    makes it fast.
    
    Uses the API proposal from Russ in http://goo.gl/cCKeb2 but
    adds an optional New field, as used in fmt and elsewhere.
    Almost all callers want that.
    
    Update #4720
    
    R=golang-dev, rsc, cshapiro, iant, r, dvyukov, khr
    CC=golang-dev
    https://golang.org/cl/41860043
    8c6ef061
Name
Last commit
Last update
..
atomic Loading commit data...
cond.go Loading commit data...
cond_test.go Loading commit data...
example_test.go Loading commit data...
export_test.go Loading commit data...
mutex.go Loading commit data...
mutex_test.go Loading commit data...
once.go Loading commit data...
once_test.go Loading commit data...
pool.go Loading commit data...
pool_test.go Loading commit data...
race.go Loading commit data...
race0.go Loading commit data...
runtime.go Loading commit data...
runtime_sema_test.go Loading commit data...
rwmutex.go Loading commit data...
rwmutex_test.go Loading commit data...
waitgroup.go Loading commit data...
waitgroup_test.go Loading commit data...