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
Post a Comment