1 Sep 2000 01:04
Re: Threads: Atomic Counter
Daryle Walker <darylew <at> mac.com>
2000-08-31 23:04:14 GMT
2000-08-31 23:04:14 GMT
on 8/30/00 10:05 PM, William Kempf at sirwillard <at> my-deja.com wrote: > Atomic counters are integral types that can be manipulated through > atomic functions, functions gauranteed to execute from start to end > with out fear of pre-emption causing corruption. Many platforms have > native operations that allow atomic operations on native integral > types, but we can't rely on this being the case. So, we need a type > other than the built in integral types that we can build the > necessary synchronization into for platforms with out such atomic > operations. Doesn't C ,and therefore C++, have a "sig_atomic_t" type that works like this? (I mentioned this type during the thread discussions.) Could we use it somehow, without (always) resorting to platform-specific extensions? -- --
RSS Feed