c# - How to run a method synchronously in a single thread? -
i have method want thread run 1 @ time.
the problem is, execution of method coupled command, when user presses button few times in row fast, method gets called few times in row same thread. locking doesn't work in case since same thread gets lock time , time again. find odd same method called few times in row same thread while before calls of method haven't finished yet.
is there way forcefulness method run 1 @ time single thread?
c# multithreading delegatecommand
No comments:
Post a Comment