An interface for providing thread/resource locking in order to protect
resources from being altered by multiple threads at the same time.
Namespace: Quartz.Impl.AdoJobStore
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public interface ISemaphore
The ISemaphore type exposes the following members.
Properties
Name | Description | |
---|---|---|
RequiresConnection |
Whether this Semaphore implementation requires a database connection for
its lock management operations.
|
Methods
Name | Description | |
---|---|---|
ObtainLock |
Grants a lock on the identified resource to the calling thread (blocking
until it is available).
| |
ReleaseLock | Release the lock on the identified resource if it is held by the calling
thread.
|
See Also