Re: Atomicity Question
- From: Cool Guy <coolguy@xxxxxxx>
- Date: Sat, 18 Jun 2005 09:08:08 +0100
"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote:
Actually -- come to think of it, I need to *lock* instead (i.e. not use a
volatile variable) in the code which prompted me to ask this question,
anyway.
> Not necessarily. You either need to make the variable volatile, or (my
> preferred route) always access shared data from within a lock.
Hmm... I'm beginning to see why you prefer to always use locking. :-)
.
- Follow-Ups:
- Re: Atomicity Question
- From: Cool Guy
- Re: Atomicity Question
- References:
- Atomicity Question
- From: Cool Guy
- Re: Atomicity Question
- From: Jon Skeet [C# MVP]
- Atomicity Question
- Prev by Date: Re: Volatility
- Next by Date: Re: Atomicity Question
- Previous by thread: Re: Atomicity Question
- Next by thread: Re: Atomicity Question
- Index(es):
Relevant Pages
|