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.

Comments

  1. Edwin Yip the original "works" from the question is perfectly fine.

    ReplyDelete
  2. Edwin Yip Atomic operations (also known as interlocked operations) are the optimal way

    ReplyDelete
  3. Jeroen Wiert Pluimers Yes I know, I'm just looking for better solutions, and David helped :)

    ReplyDelete

Post a Comment