Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-02-12 11:58:30

Pavel Vasiliev wrote:
> pthread_refcount_enroll_one() (== "increment_if_non_zero()") may be
> emulated in Win32 (using InterlockedCompareExchange()).

Yeah, archaic Win95(/Intel386) aside. AFAIK, InterlockedCompareExchange
(/cmpxchg) "Requires Windows 98 or later" (/486+).

> The problem is what to do on e.g. current Unix'es + GCC.
> Alternatives are either wait for pthread_refcount_t in many pthreads
> implementations or to explicitly use inline assembler(s).
> Other alternatives?
> The problem is so obvious that the question may be thought rhetorical.
> But I really ask whether you have some suggestions.
("> Well, I guess...")


Boost list run by bdawes at, gregod at, cpdaniel at, john at