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.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
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