|
Boost Users : |
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-03-26 16:36:32
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 26 March 2008 14:08 pm, Rainer Thaden wrote:
> I have a DLL communicating with an external device via Ethernet and a
> main program with a Qt-GUI for controlling the device.
> The communciation runs in a different thread than the main program.
> Qt provides signal/slots across threads, but as I understand it, I have
> to use the QThread library for it to work.
> In the DLL I use boost signals and slots and the main program also
> receives boost signals and then emits Qt's signals to update the GUI, etc.
> The reason to not use Qt in the DLL was to not force other programmers
> to use Qt if they want to write their own control application for the DLL.
> However, I am getting in trouble with synchronization of the threads now
Are you aware that Boost.Signals is not thread-safe? It sounds like you are
accessing a boost::signal from multiple threads.
- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFH6rPR5vihyNWuA4URAoKiAJ9f/VObZfUPTpVvK83d+BxPCg4lQQCgltkb
uVYYyAPx++Bf2Gtl3ZzJn+k=
=uFjp
-----END PGP SIGNATURE-----
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net