Boost logo

Boost Users :

Subject: [Boost-users] Communication between QThread and boost threads
From: ustulation (ustulation_at_[hidden])
Date: 2013-02-11 02:16:10


The Gui is in Qt and Api is in boost. The Gui is meant to sit on top of Api.
One of the functions of Api is to do network level data management, process
data in certain ways and communicate with the Gui (ie., bridge Gui with
other end of Api). To keep the GUI from freezing Api does it's work in a
separate thread. If both Gui and Api had used Qt, communication would have
been easier with cross-threaded signal-slot mechanism of Qt. Api emits and
returns immediately and vice-versa. So none would be blocked unless
explicitly specified (*Qt::BlockingQueuedConnection*). I've been using boost
only since a while back as it was required to code new Api in boost. How do
i achieve this mechanism in *boost <--> Qt communication*? Api is going to
be header+static_library and so Gui and Api will produce single executable.
I have to support Linux, Windows and Mac minimum.

--
View this message in context: http://boost.2283326.n4.nabble.com/Communication-between-QThread-and-boost-threads-tp4642604.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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