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.
Namespace: Gemstone.ThreadingAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public InterprocessReaderWriterLock(
string name,
int maximumConcurrentLocks,
bool global = true
)
Public Sub New (
name As String,
maximumConcurrentLocks As Integer,
Optional global As Boolean = true
)
public:
InterprocessReaderWriterLock(
String^ name,
int maximumConcurrentLocks,
bool global = true
)
Gemstone.Threading.InterprocessReaderWriterLock = function(name, maximumConcurrentLocks, global);
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.
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).