Boost Testing :
Subject: Re: [Boost-testing] How to test callbacks / non-blocking calls?
Date: 2009-06-19 02:46:51
> Can't you wait till communication is completed? In worse case you can wait
> conditional variable and trigger it inside the callback.
Is this a general aproach on such problems? I already had some thoughts about a while (!finish) sleep(x) loop but was not sure if there is a more cleaner way to do that, since this looks a lot like hacking around :)
-- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01