InterprocessReaderWriterLock(String, Int32, Boolean) Constructor

Creates a new instance of the InterprocessReaderWriterLock associated with the specified name that identifies a source object needing concurrency locking.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public InterprocessReaderWriterLock(
	string name,
	int maximumConcurrentLocks,
	bool global = true
)

Parameters

name  String
Identifying name of source object needing concurrency locking (e.g., a path and file name).
maximumConcurrentLocks  Int32
Maximum concurrent reader locks to allow.
global  Boolean  (Optional)
Determines if semaphore and mutex used by InterprocessReaderWriterLock should be marked as global; set value to false for local.

Remarks

If more reader locks are requested than the maximumConcurrentLocks, excess reader locks will simply wait until a lock is available (i.e., one of the existing reads completes).

See Also