Gemstone Common Library
Show/Hide TOC

# InterprocessReaderWriterLock(String, 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.150 -- Release Build+64e3b411e1abfbd2d4d8a81e850c3909a0ce8731
C#
View Source Request Example

    public InterprocessReaderWriterLock(
    	string name,
    	bool global = true
    )

VB
View Source Request Example

    Public Sub New (
    	name As String,
    	Optional global As Boolean = true
    )

C++
View Source Request Example

    public:
    InterprocessReaderWriterLock(
    	String^ name,
    	bool global = true
    )

JavaScript
View Source Request Example

    Gemstone.Threading.InterprocessReaderWriterLock = function(name, global);

#### Parameters

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

## See Also

#### Reference

InterprocessReaderWriterLock Class
InterprocessReaderWriterLock Overload
Gemstone.Threading Namespace