Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Semaphore Constructor

Create a Semaphore with the given initial number of permits.

Using a seed of 1 makes the semaphore act as a mutual exclusion lock.

Negative seeds are also allowed, in which case no acquires will proceed until the number of releases has pushed the number of permits past 0.

[Visual Basic]
Public Sub New( _
   ByVal initialPermits As Long _
)
[C#]
Semaphore(
   long initialPermits
);

See Also

Semaphore Class | Spring.Threading Namespace