Open sandboxFocus

Class ThreadUnsafeThreadingModel

The ThreadUnsafeThreadingModel class describes a threading model in which an object cannot be accessed concurrently by several threads. In case of concurrent access, a ConcurrentAccessException is thrown. The thread-unsafe threading model is not strictly a model, because it cannot be deterministically verified. To use the ThreadAffineThreadingModel, apply the ThreadUnsafeAttribute custom attribute to a class.

Inheritance
ThreadUnsafeThreadingModel
Namespace: PostSharp.Patterns.Threading.Models
Assembly: PostSharp.Patterns.Threading.dll
Syntax
public class ThreadUnsafeThreadingModel : ThreadingModel

Properties

Name Description
IsBlocking

Gets a value indicating whether the current ThreadingModel has blocking semantics, that is, whether the threading model may cause the executing thread to be blocked, for instance when waiting for a lock.

IsThreadSafe

Gets a value indicating whether the threading model is possibly thread safe.