wpf - How to use a lock in threads -


i'm using threads in wpf project. , control threads flow, i'm using spinlock in wpf.

however, faced on "this lock using thread" error log @ runtime.( original log not english, translate english. )

so, think spinlock cannot used threads. hope know way of using lock in many threads. or want know lock can used in case.

you need post code. documentation spinlock says:

all members of spinlock thread-safe , may used multiple threads concurrently.

spin locks needed rarely. might investigate other locking primitives.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -