|
Boost Testing : |
Subject: Re: [Boost-testing] How to test callbacks / non-blocking calls?
From: ariasgore_at_[hidden]
Date: 2009-06-19 02:46:51
Hello,
> Can't you wait till communication is completed? In worse case you can wait
> on
> 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 :)
Best regards,
Sam
-- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01