From: Arnaud Giersch Date: Thu, 6 Jan 2011 15:59:57 +0000 (+0100) Subject: Use a separate thread to handle incoming messages. X-Git-Tag: v0.1~197 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/afd307b9711af19f9053bad1aec0b8e60c3ea467?ds=inline;hp=afd307b9711af19f9053bad1aec0b8e60c3ea467 Use a separate thread to handle incoming messages. Incoming messages were taken into account very late, because of the following scheme: ... * do something (compute, load-balance, ...) ... * receive some message * create a new asynchronous receive communication Here, we cannot have received any new message, even if the sender was ready a long time ago, since the transfer only started when we created the new communication. Thus, we start a new iteration. The solution is to implement a separate thread to handle incoming messages asynchronously. Those messages are put in a queue to be consumed later. ---