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

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

python 2.7 - Lines in my code being skipped and I am not sure why -

python - multiprocessing pool with map -