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.158 -- Release Build+8af53c44e6ad1fac543a652d58b46c9843b74b64
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