Boost logo

Threads-Devel :

From: Anthony Williams (anthony_at_[hidden])
Date: 2007-08-03 10:28:05


"Allen Pulsifer" <pulsifer3_at_[hidden]> writes:

>> If you use static linking, on some Windows compilers (gcc,
>> Borland), then TSS is not cleaned up for threads no started
>> with boost::thread (e.g. those started using CreateThread
>> directly). This is the same as for boost 1.34.1
>
> AFAIKT from grep'ing the code, TSS is a standalone functionality, i.e., its
> provided to the programmer but is not used by Boost itself, and in
> particular is not used by the reader/writer locks. Is this correct?

Yes. TSS is not used for rw locks.

> The project I'm working on at the moment is a FUSE interface
> (http://fuse.sourceforge.net/). FUSE basically is a user-space callback for
> Linux kernel file calls. I haven't figured out exactly how threading works
> in FUSE, but from an overview level, it looks like threads appear out of
> thin air, perhaps created by the kernel for the callback, and then disappear
> back into the muck. I just want to make sure this is not going to conflict
> with some functionality Boost needs for its reader/writer lock
> implementation.

The new pthreads reader/writer lock stuff is based on condition variables and
mutexes.

Anthony

-- 
Anthony Williams
Just Software Solutions Ltd - http://www.justsoftwaresolutions.co.uk
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk