diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-16 17:31:10 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-16 17:31:10 +0000 |
commit | 51b5c23482df36ac145c82d58e9ccdef9728f935 (patch) | |
tree | 15a62e43b132ebdd721ec13a0d6b664133d00e3a /cpp/demo/Ice/async/QueueI.h | |
parent | Remove debug code (diff) | |
download | ice-51b5c23482df36ac145c82d58e9ccdef9728f935.tar.bz2 ice-51b5c23482df36ac145c82d58e9ccdef9728f935.tar.xz ice-51b5c23482df36ac145c82d58e9ccdef9728f935.zip |
Added async demo
Diffstat (limited to 'cpp/demo/Ice/async/QueueI.h')
-rw-r--r-- | cpp/demo/Ice/async/QueueI.h | 32 |
1 files changed, 32 insertions, 0 deletions
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 <IceUtil/Mutex.h> +#include <Queue.h> +#include <list> + +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<std::string> _messageQueue; + std::list<Demo::AMD_Queue_getPtr> _requestQueue; +}; + + +#endif |