Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading.​Models Namespace / Reader­Writer­Synchronized­Threading­Model Class

ReaderWriterSynchronizedThreadingModel Class

The ReaderWriterSynchronizedThreadingModel class describes a threading model where several threads can have concurrent read-only access, but where writing to the object requires exclusive access. To use the ReaderWriterSynchronizedThreadingModel, apply the ReaderWriterSynchronizedAttribute custom attribute to a class.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Threading.ThreadingModel
    PostSharp.Patterns.Threading.Models.ReaderWriterSynchronizedThreadingModel

Namespace:  PostSharp.Patterns.Threading.Models
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.0.24.0 (6.0.24.0)
Syntax
C#
public sealed class ReaderWriterSynchronizedThreadingModel : ThreadingModel

The ReaderWriterSynchronizedThreadingModel type exposes the following members.

Properties
  NameDescription
Public propertyIsBlocking
Determines whether the current ThreadingModel has blocking semantics, i.e. if the threading model may cause the executing thread to be blocked, for instance when waiting for a lock.
(Overrides ThreadingModel.IsBlocking.)
Public propertyIsThreadSafe
Determines whether the threading model is possibly thread safe.
(Overrides ThreadingModel.IsThreadSafe.)
Methods
  NameDescription
Public methodToString
Returns a string that represents the current object.
(Inherited from ThreadingModel.)
See Also