• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List

request_queue.h

00001 /***************************************************************************
00002  *  include/stxxl/bits/io/request_queue.h
00003  *
00004  *  Part of the STXXL. See http://stxxl.sourceforge.net
00005  *
00006  *  Copyright (C) 2009 Andreas Beckmann <[email protected]>
00007  *
00008  *  Distributed under the Boost Software License, Version 1.0.
00009  *  (See accompanying file LICENSE_1_0.txt or copy at
00010  *  http://www.boost.org/LICENSE_1_0.txt)
00011  **************************************************************************/
00012 
00013 #ifndef STXXL_IO_REQUEST_QUEUE_HEADER
00014 #define STXXL_IO_REQUEST_QUEUE_HEADER
00015 
00016 #include <stxxl/bits/noncopyable.h>
00017 #include <stxxl/bits/io/request.h>
00018 
00019 
00020 __STXXL_BEGIN_NAMESPACE
00021 
00024 
00025 class disk_queue
00026 {
00027 public:
00028     enum priority_op { READ, WRITE, NONE };
00029 };
00030 
00031 class request_queue : private noncopyable
00032 {
00033 public:
00034     virtual void add_request(request_ptr & req) = 0;
00035     virtual bool cancel_request(request_ptr & req) = 0;
00036     virtual ~request_queue() { }
00037 };
00038 
00040 
00041 __STXXL_END_NAMESPACE
00042 
00043 #endif // !STXXL_IO_REQUEST_QUEUE_HEADER
00044 // vim: et:ts=4:sw=4

Generated by  doxygen 1.7.1