Re: multi-threaded boolean access: is a critical section really necessery in this case?
timkelly1980 wrote:
I have an application that needs to poll a boolean that might have been
set from another thread.
i didn't really think it was necessery to use a Critical Section but
did so for "good practice" reasons (i habitually protect all shared
variables):
I'm not too far into threading, but my understanding is that
booleans are atomic (e.g. written using only one assembly statement)
and therefore the critical sections should have no use or effect.
.
Relevant Pages
- Re: Too neat to waste...
... onto CD - but in practice they may be applied for reasons which have ... Nobody knows why the inherent sound of LPs can sound better than CD. ... understand what the real reasons might be for what they talk about. ... It can be done by more specific understanding, ... (uk.rec.audio) - Re: Re:"genital cutting" LONG, but informative
... reasons for it -- not always logical reasons, ... according to an article on FGM in the Times a number ... practice has been spread with Islam ever since. ... The village would end up deciding to ... (rec.arts.mystery) - Re:"genital cutting" LONG, but informative
... reasons for it -- not always logical reasons, ... according to an article on FGM in the Times a number ... practice has been spread with Islam ever since. ... The village would end up deciding to ... (rec.arts.mystery) - Re: Too neat to waste...
... onto CD - but in practice they may be applied for reasons which have ... nothing to do with CD as a format per se. ... understand what the real reasons might be for what they talk about. ... It can be done by more specific understanding, ... (uk.rec.audio) - Re: The unCongregation of Master Han Shan (Platitudes-R-Us)
... Not scary to many Fundamentalists (Islamic, Christian, ... and 2 are as empty handed as far as reasons are concerned as the fundamentalists. ... Our ancestors were survivors with everything that implies and practiced scapegoating, lynching etc. not always for the good reasons. ... ought to practice them. ... (talk.religion.buddhism) |
|