faio_pdrv.hpp

00001 #line 797 "./lpsrc/flx_faio.pak"
00002 #ifndef __FAIO_PDRV__
00003 #define __FAIO_PDRV__
00004 
00005 #include <flx_faio_config.hpp>
00006 #include "demux_pfileio.hpp"
00007 #include "demux_posix_timer_queue.hpp"
00008 #include "faio_drv.hpp"
00009 namespace flx { namespace faio {
00010 
00011 // same as flx_drv, but with an async file io worker fifo.
00012 class FAIO_EXTERN pflx_drv : public flx_drv {
00013     demux::pasync_fileio       file_aio_worker;
00014     demux::posix_timer_queue   sleepers;
00015 public:
00016     pflx_drv(flx::pthread::sleep_queue_t& q, int n1, int m2, int n2, int m2);
00017 
00018     demux::pasync_fileio* get_aio_worker() { return &file_aio_worker; }
00019     demux::timer_queue* get_sleepers() { return &sleepers; }
00020     bool debug;
00021     void set_debug(bool d) { debug = d; }
00022 };
00023 }}
00024 #endif
00025 

Generated on Mon Dec 11 18:08:29 2006 for Felix by  doxygen 1.5.1