func (s *Stat) free() { s.Lock() C.sg_shutdown() s.Unlock() }
func (s *Stat) free() { s.Lock() C.sg_shutdown() s.exitMessage <- true s.Unlock() }
// Shutdown ensures that any descriptors opened when gostatgrab was imported // are properly closed. func Shutdown() error { if C.sg_shutdown() != 0 { return getError() } return nil }