How do I specify the equivalent of volatile in VB.net?

前端 未结 6 1973
误落风尘
误落风尘 2020-12-03 19:05

I\'m attempting to write a lock-free version of a call queue I use for message passing. This is not for anything serious, just to learn about threading.

I\'m relativ

6条回答
  •  无人及你
    2020-12-03 19:20

    Use Thread.VolatileRead() and VolatileWrite() methods from the BCL.

    http://msdn.microsoft.com/en-us/library/system.threading.thread.volatileread.aspx

提交回复
热议问题