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.155 -- Release Build+a7d8ba87ff92af3282fc68a6fbfd37a854100b44
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