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.143 -- Release Build+524337d392fd5616b12b50022b004322b9e7c330
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