|
InterprocessReaderWriterLock(String, Int32) Constructor
|
Creates a new instance of the
InterprocessReaderWriterLock associated with the specified
name that identifies a source object needing concurrency locking.
Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax public InterprocessReaderWriterLock(
string name,
int maximumConcurrentLocks
)
Public Sub New (
name As String,
maximumConcurrentLocks As Integer
)
public:
InterprocessReaderWriterLock(
String^ name,
int maximumConcurrentLocks
)
new :
name : string *
maximumConcurrentLocks : int -> InterprocessReaderWriterLock
GSF.Threading.InterprocessReaderWriterLock = function(name, maximumConcurrentLocks);
View SourceParameters
- 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.
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