Esempio n. 1
0
func (s *Stat) free() {
	s.Lock()
	C.sg_shutdown()
	s.Unlock()
}
Esempio n. 2
0
func (s *Stat) free() {
	s.Lock()
	C.sg_shutdown()
	s.exitMessage <- true
	s.Unlock()
}
Esempio n. 3
0
// 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
}