Class SyncLockerFactory
Provides factory methods to create synchronized reader-writer locks that support a generalized locking and releasing api and syntax.
Inherited Members
Namespace: Swan.Threading
Syntax
public static class SyncLockerFactory
Methods
Create()
Creates a reader-writer lock backed by a standard ReaderWriterLock.
Declaration
public static ISyncLocker Create()
Returns
Type | Description |
---|---|
ISyncLocker | The synchronized locker. |
Create(Boolean)
Creates a reader-writer lock.
Declaration
public static ISyncLocker Create(bool useSlim)
Parameters
Type | Name | Description |
---|---|---|
Boolean | useSlim | if set to |
Returns
Type | Description |
---|---|
ISyncLocker | The Sync Locker. |
CreateSlim()
Creates a reader-writer lock backed by a ReaderWriterLockSlim.
Declaration
public static ISyncLocker CreateSlim()
Returns
Type | Description |
---|---|
ISyncLocker | The synchronized locker. |