Boost logo

Boost :

From: williamkempf_at_[hidden]
Date: 2001-07-31 15:55:39


I've been reworking the tss type in Boost.Threads to be type safe (no
void*) and manage the data lifetimes internally. This is a royal
pain on Win32 platforms for many reasons :(.

Any way, the implementation is going to require some initialization
code that needs to be run only once even if multiple threads access
the data after it's initialized. POSIX uses pthread_once to do this,
but there's no Win32 equivalent. Instead, Win32 programmers are
expected to make use of DllMain to handle this sort of initialization
and tear down stuff. There's obvious drawbacks to this approach and
it's not portable in any event. So the question is, does
Boost.Threads need once functions, and if so what sort of interface
should we put on it?

Bill Kempf


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk