|
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.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
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