From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-04-16 11:23:25
> Hello everyone:
> I met a problem when i want to use the signals library with BCB6(sp4):
> I build the lib with: bjam -sTOOLS=borland,It build ok.
Note that it builds a single-threaded library by default.
> I copy the example from signals document and want to complie and run,
> but i found when the program execute the statement
> :sig.connect(Hello()); program is hang.
> I found a mutex is lock(because the BOOST_HAS_THREADS is defined, i
> want to undef it ,but do nothing), so i remove all the statement of
> "mutex_type::scoped_lock lock(mtx_);" in the shared_count.hpp file(
> you can debug into when call function sig.connect(Hello());), and
> rebuild and run ,It seem it is ok, but i don't know if is correct of
> the changing.
> what is the reason of it?
The reason of it is that your application is multithreaded. If you don't
need threads, you can turn them off somewhere in your IDE.
Otherwise, you need to build the multithreaded version of Signals with
bjam -sTOOLS=borland "-sBUILD=<threading>multi"
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk