Files
moxa/stdlib/sync.go
Marc Vertes 25adc35a3c Change representation of stdlib from interface{} to reflect.Value
This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
2018-08-28 03:12:28 +02:00

25 lines
711 B
Go

package stdlib
// Generated by 'goexports sync'. Do not edit!
import (
"reflect"
"sync"
)
func init() {
Value["sync"] = map[string]reflect.Value{
"NewCond": reflect.ValueOf(sync.NewCond),
}
Type["sync"] = map[string]reflect.Type{
"Cond": reflect.TypeOf((*sync.Cond)(nil)).Elem(),
"Locker": reflect.TypeOf((*sync.Locker)(nil)).Elem(),
"Map": reflect.TypeOf((*sync.Map)(nil)).Elem(),
"Mutex": reflect.TypeOf((*sync.Mutex)(nil)).Elem(),
"Once": reflect.TypeOf((*sync.Once)(nil)).Elem(),
"Pool": reflect.TypeOf((*sync.Pool)(nil)).Elem(),
"RWMutex": reflect.TypeOf((*sync.RWMutex)(nil)).Elem(),
"WaitGroup": reflect.TypeOf((*sync.WaitGroup)(nil)).Elem(),
}
}