Hi all
Hi all,
Can I use a Critical Section to Lock a Private field before Incrementing it?.
will this work the same way "TInterlocked.Increment" works.
Can I use a Critical Section to Lock a Private field before Incrementing it?.
will this work the same way "TInterlocked.Increment" works.
Edwin Yip the original "works" from the question is perfectly fine.
ReplyDeleteEdwin Yip Atomic operations (also known as interlocked operations) are the optimal way
ReplyDeleteJeroen Wiert Pluimers Yes I know, I'm just looking for better solutions, and David helped :)
ReplyDelete