chansemaphore

package
v0.5.18 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package chansemaphore は、チャネルでセマフォの動作を実現するサンプルが配置されています

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Semaphore

type Semaphore interface {
	// Acquire は、共有資源にアクセスする権利を獲得します
	Acquire()
	// Release は、獲得している権利を開放します
	Release()
}

Semaphore は、共有する資源にアクセスするのを制御する抽象データ型です.

Directories

Path Synopsis
Package binarysemaphore は、チャネルでバイナリセマフォを表現しています.
Package binarysemaphore は、チャネルでバイナリセマフォを表現しています.
Package countingsemaphore は、チャネルで計数セマフォを表現しています.
Package countingsemaphore は、チャネルで計数セマフォを表現しています.

Jump to

Keyboard shortcuts

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