From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-09-06 11:14:40
condition.cpp does not compile when the macro NOMINMAX is not defined.
static boost::mutex m;
static boost::thread_specific_ptr<int> p;
void print(int n)
std::cout << n << '\n';
for(int i = 0; i < 8; ++i)
sometimes prints 1, 2, ..., 7 (note absence of 0) and sometimes locks up my
machine. (I'm using MSVC.) This happens only in Release builds, not in
Debug; I suspect that 0 is not printed because the catch(...) handler in
thread.cpp eats the access violation. The problem is probably in call_once.
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk