From 51b5c23482df36ac145c82d58e9ccdef9728f935 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Thu, 16 Nov 2006 17:31:10 +0000 Subject: Added async demo --- cpp/demo/Ice/async/QueueI.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cpp/demo/Ice/async/QueueI.h (limited to 'cpp/demo/Ice/async/QueueI.h') diff --git a/cpp/demo/Ice/async/QueueI.h b/cpp/demo/Ice/async/QueueI.h new file mode 100644 index 00000000000..7daf86daf7e --- /dev/null +++ b/cpp/demo/Ice/async/QueueI.h @@ -0,0 +1,32 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#ifndef QUEUE_I_H +#define QUEUE_I_H + +#include +#include +#include + +class QueueI : virtual public Demo::Queue, public IceUtil::Mutex +{ +public: + + virtual void get_async(const Demo::AMD_Queue_getPtr&, const Ice::Current&); + virtual void add(const std::string&, const Ice::Current&); + + +private: + + std::list _messageQueue; + std::list _requestQueue; +}; + + +#endif -- cgit v1.2.3