Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceSemaphore ¶
type ResourceSemaphore struct {
Limit int
}
func NewResourceSemaphore ¶
func NewResourceSemaphore(limit int) *ResourceSemaphore
func NewUnInitialisedResourceSemaphore ¶
func NewUnInitialisedResourceSemaphore(limit int) *ResourceSemaphore
func (*ResourceSemaphore) AcquireResource ¶
func (r *ResourceSemaphore) AcquireResource(size int)
func (*ResourceSemaphore) ReleaseResource ¶
func (r *ResourceSemaphore) ReleaseResource(size int)
Click to show internal directories.
Click to hide internal directories.