msgq

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyQueue

func DestroyQueue(msqid uintptr) (err error)

DestroyQueue closes the queue has been opened returns error, if any.

func MsgChan

func MsgChan(msqid uintptr, msgbf *msgbuf) <-chan struct{}

MsgChan calls RcvMsg and returns a channel.

func NewMsg

func NewMsg(mtype int, mtext []byte) *msgbuf

NewMsg new a message.

func OpenQueue

func OpenQueue(key int) (msqid uintptr, err error)

OpenQueue creates/opens a system v message queue and returns queue key and error, if any.

func RcvMsg

func RcvMsg(msqid uintptr, msgbf *msgbuf) (err error)

RcvMsg blocks and receive one message from queue.

func SndMsg

func SndMsg(msqid uintptr, msgbf *msgbuf) (err error)

SndMsg sends the messages to queue returns error if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL