astisystemv

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	IpcCreate    = C.IPC_CREAT
	IpcExclusive = C.IPC_EXCL
)

Variables

This section is empty.

Functions

func NewKey

func NewKey(projectID int, path string) (int, error)

Types

type Semaphore

type Semaphore struct {
	// contains filtered or unexported fields
}

func CreateSemaphore

func CreateSemaphore(key, flags int) (*Semaphore, error)

func OpenSemaphore

func OpenSemaphore(key int) (*Semaphore, error)

func (*Semaphore) Close

func (s *Semaphore) Close() error

func (*Semaphore) Key

func (s *Semaphore) Key() int

func (*Semaphore) Lock

func (s *Semaphore) Lock() error

func (*Semaphore) Unlock

func (s *Semaphore) Unlock() error

type SemaphoredSharedMemoryReadOptions

type SemaphoredSharedMemoryReadOptions struct {
	SemaphoreKey    int
	SharedMemoryAt  int64
	SharedMemoryKey int
	Size            int
}

type SemaphoredSharedMemoryReader

type SemaphoredSharedMemoryReader struct {
	// contains filtered or unexported fields
}

func NewSemaphoredSharedMemoryReader

func NewSemaphoredSharedMemoryReader() *SemaphoredSharedMemoryReader

func (*SemaphoredSharedMemoryReader) Close

func (r *SemaphoredSharedMemoryReader) Close()

func (*SemaphoredSharedMemoryReader) ReadBytes

type SemaphoredSharedMemoryWriter

type SemaphoredSharedMemoryWriter struct {
	// contains filtered or unexported fields
}

func NewSemaphoredSharedMemoryWriter

func NewSemaphoredSharedMemoryWriter() *SemaphoredSharedMemoryWriter

func (*SemaphoredSharedMemoryWriter) Close

func (w *SemaphoredSharedMemoryWriter) Close()

func (*SemaphoredSharedMemoryWriter) Write

func (*SemaphoredSharedMemoryWriter) WriteBytes

type SharedMemory

type SharedMemory struct {
	// contains filtered or unexported fields
}

func CreateSharedMemory

func CreateSharedMemory(key, size, flags int) (*SharedMemory, error)

func OpenSharedMemory

func OpenSharedMemory(key int) (*SharedMemory, error)

func (*SharedMemory) Addr

func (shm *SharedMemory) Addr() unsafe.Pointer

func (*SharedMemory) Close

func (shm *SharedMemory) Close() error

func (*SharedMemory) Key

func (shm *SharedMemory) Key() int

func (*SharedMemory) ReadBytes

func (shm *SharedMemory) ReadBytes(size int) ([]byte, error)

func (*SharedMemory) Write

func (shm *SharedMemory) Write(src unsafe.Pointer, size int) error

func (*SharedMemory) WriteBytes

func (shm *SharedMemory) WriteBytes(b []byte) error

Jump to

Keyboard shortcuts

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