SemaphoreUtils

Last updated 2 months ago

Inclusion code:

Service Deployment

Port Name

Location

Protocol

Interfaces

SemaphoreUtils

-

-

SemaphoreUtilsInterface

List of Available Interfaces

SemaphoreUtilsInterface

Operation Name

Input Type

Output Type

Faults

release

SemaphoreRequest

bool

acquire

SemaphoreRequest

bool

Operation Description

release

Operation documentation: Releases permits to a semaphore. If there exists no semaphore with the given ".name", "release" creates a new semaphore with that name and as many permits as indicated in ".permits". The default behaviour when value ".permits" is absent is to release one permit.

Invocation template:

release@SemaphoreUtils( request )( response )

Request type

Type: SemaphoreRequest

Type documentation: no documentation provided

type SemaphoreRequest: void {
.permits?: int
.name: string
}

Response type

Type: bool

Type documentation: no documentation provided

acquire

Operation documentation: Acquires permits from a semaphore. If there exists no semaphore with the given ".name", "acquire" creates a new semaphore with 0 permits with that name. The operation returns a response when a new permit is released (see operation "release"). The default behaviour when value ".permits" is absent is to acquire one permit.

Invocation template:

acquire@SemaphoreUtils( request )( response )

Request type

Type: SemaphoreRequest

Type documentation: no documentation provided

type SemaphoreRequest: void {
.permits?: int
.name: string
}

Response type

Type: bool

Type documentation: no documentation provided