Documentation
¶
Index ¶
Constants ¶
View Source
const ALT_PATH_PREFIX = "/tmp/"
View Source
const MSGQ_PREFIX = "msgq_"
View Source
const MSGQ_PREFIXED_TEST_NAME = "msgq_logMessage"
View Source
const NUM_READERS = 15
View Source
const PATH_PREFIX = "/dev/shm/"
Variables ¶
View Source
var HEADER_SIZE = (3*8 + 3*NUM_READERS*8) + align(3*8+3*NUM_READERS*8)
View Source
var OPENPILOT_PREFIX = os.Getenv("OPENPILOT_PREFIX")
View Source
var USE_MSGQ_PREFIX = os.Getenv("USE_MSGQ_PREFIX")
Functions ¶
func IsPrefixedMsgq ¶ added in v0.1.9
func IsPrefixedMsgq() bool
func ThreadSignal ¶
func ThreadSignal(tid uint32)
Types ¶
type Header ¶
type Msgq ¶
func (*Msgq) WaitForSubscriber ¶
func (m *Msgq) WaitForSubscriber()
type MsgqPublisher ¶
func (*MsgqPublisher) Init ¶
func (p *MsgqPublisher) Init(msgq Msgq)
func (*MsgqPublisher) Send ¶
func (p *MsgqPublisher) Send(data []byte)
type MsgqSubscriber ¶
type MsgqSubscriber struct {
Shadow bool
Msgq Msgq
Uid uint64
Id uint64
Conflate bool
// contains filtered or unexported fields
}
func (*MsgqSubscriber) Init ¶
func (s *MsgqSubscriber) Init(msgq Msgq)
func (*MsgqSubscriber) Read ¶
func (s *MsgqSubscriber) Read() []byte
func (*MsgqSubscriber) Ready ¶
func (s *MsgqSubscriber) Ready() bool
func (*MsgqSubscriber) Reset ¶
func (s *MsgqSubscriber) Reset()
Click to show internal directories.
Click to hide internal directories.