pip compatible server to serve Python packages out of GitHub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
297 B

// +build go1.3
package web
import "sync"
type cPool sync.Pool
func makeCPool() *cPool {
return &cPool{}
}
func (c *cPool) alloc() *cStack {
cs := (*sync.Pool)(c).Get()
if cs == nil {
return nil
}
return cs.(*cStack)
}
func (c *cPool) release(cs *cStack) {
(*sync.Pool)(c).Put(cs)
}