LCOV - code coverage report
Current view: top level - eventdispatcher - timer.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 1 0.0 %
Date: 2019-08-08 02:52:36 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // Copyright (c) 2012-2019  Made to Order Software Corp.  All Rights Reserved
       2             : //
       3             : // This program is free software; you can redistribute it and/or modify
       4             : // it under the terms of the GNU General Public License as published by
       5             : // the Free Software Foundation; either version 2 of the License, or
       6             : // (at your option) any later version.
       7             : //
       8             : // This program is distributed in the hope that it will be useful,
       9             : // but WITHOUT ANY WARRANTY; without even the implied warranty of
      10             : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      11             : // GNU General Public License for more details.
      12             : //
      13             : // You should have received a copy of the GNU General Public License
      14             : // along with this program; if not, write to the Free Software
      15             : // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      16             : #pragma once
      17             : 
      18             : // self
      19             : //
      20             : #include "eventdispatcher/connection.h"
      21             : 
      22             : 
      23             : 
      24             : namespace ed
      25             : {
      26             : 
      27             : 
      28             : 
      29           0 : class timer
      30             :     : public connection
      31             : {
      32             : public:
      33             :     // timer is implemented using the timeout value on poll().
      34             :     // we could have another implementation that makes use of
      35             :     // the timerfd_create() function (in which case we'd be
      36             :     // limited to a date timeout, although an interval would
      37             :     // work too but require a little bit of work.)
      38             :     //
      39             :     typedef std::shared_ptr<timer>      pointer_t;
      40             : 
      41             :                                 timer(std::int64_t timeout_us);
      42             : 
      43             :     // snap_connection implementation
      44             :     virtual int                 get_socket() const override;
      45             :     virtual bool                valid_socket() const override;
      46             : };
      47             : 
      48             : 
      49             : 
      50             : } // namespace ed
      51             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.12