summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2007-07-06 13:11:55 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2007-07-06 13:11:55 +0000
commit32fe78d370e0572a5ed21ff3e84f668d8a2f2a49 (patch)
treeebca5839da19ae358c3777be249a2f2710994fe3 /cpp
parente4014836034546ac442e914446659d9b704d6b16 (diff)
downloadqpid-python-32fe78d370e0572a5ed21ff3e84f668d8a2f2a49.tar.gz
- added sleep to waiting thread.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@553873 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/examples/topic_listener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/topic_listener.cpp b/cpp/examples/topic_listener.cpp
index a5de89a736..799d564aa2 100644
--- a/cpp/examples/topic_listener.cpp
+++ b/cpp/examples/topic_listener.cpp
@@ -80,7 +80,7 @@ int main() {
channel.start();
while (!done)
- ;
+ sleep(1000);
//-----------------------------------------------------------------------------
channel.close();