Boost logo

Boost-Build :

From: Jürgen Hunold (hunold_at_[hidden])
Date: 2006-04-07 08:12:06


Hi Volodya !

Am Freedag 07 April 2006, 13:43 schrieb Vladimir Prus:
> Hi!
> If I understand correctly, Qt4 should always be built multithreaded.

Yes, because they use a secondary thread to do blocking operations, like
namelooksups. I can look up the page in Qt4 docs if needed.

> However, what should be do if an application is built with
> <threading>single, but links to Qt4?
>
> - Error out, require multi-threaded build

At least on Win32. My preferred option

> - Does not care, use multi-threaded Qt
> - When using Qt source, build with with multithreading
>
> For me, erroring out seems like the best approach -- I've had pretty bad
> experience mixing single- and multi- threaded code in one application.

On Win32, you end up with two different runtimes. Bad idea.

> Any comments?

+10 for bailing out when trying to build single threaded.

Which leads to another question:
Should we make multithreading the default option ? At least for compilers
which don't support single threading any more (msvc-8.0, I believe ?) ?

Right now I've made multithreading the default by re-arranging the feature in
order to shorten build path (another post).

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold  ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57  ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99  ! Lister Straße 15
* hunold_at_[hidden]          ! www.ive-mbh.de

Boost-Build 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