From 9e864a41b78833385396976a6500520be4cbc14b Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Mon, 4 May 2009 21:44:59 +0000 Subject: Add portability support for QMF agent, thanks to Pete McKinnon - partially fixes QPID-1731 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@771457 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/examples/qmf-agent/example.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/examples/qmf-agent/example.cpp') diff --git a/qpid/cpp/examples/qmf-agent/example.cpp b/qpid/cpp/examples/qmf-agent/example.cpp index 4dec014370..a611c25ba3 100644 --- a/qpid/cpp/examples/qmf-agent/example.cpp +++ b/qpid/cpp/examples/qmf-agent/example.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include "qmf/org/apache/qpid/agent/example/Parent.h" #include "qmf/org/apache/qpid/agent/example/Child.h" #include "qmf/org/apache/qpid/agent/example/ArgsParentCreate_child.h" @@ -30,7 +31,6 @@ #include "qmf/org/apache/qpid/agent/example/Package.h" #include -#include #include #include @@ -102,7 +102,7 @@ void CoreClass::doLoop() { // Periodically bump a counter to provide a changing statistical value while (1) { - sleep(1); + qpid::sys::sleep(1); mgmtObject->inc_count(); mgmtObject->set_state("IN_LOOP"); @@ -187,6 +187,8 @@ int main_int(int argc, char** argv) CoreClass core3(agent, "Example Core Object #3"); core1.doLoop(); + + return 0; } int main(int argc, char** argv) -- cgit v1.2.1