LCOV - code coverage report
Current view: top level - lib/Support/Unix - Watchdog.inc (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 0 6 0.0 %
Date: 2018-10-20 13:21:21 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===--- Unix/Watchdog.inc - Unix Watchdog Implementation -------*- C++ -*-===//
       2             : //
       3             : //                     The LLVM Compiler Infrastructure
       4             : //
       5             : // This file is distributed under the University of Illinois Open Source
       6             : // License. See LICENSE.TXT for details.
       7             : //
       8             : //===----------------------------------------------------------------------===//
       9             : //
      10             : // This file provides the generic Unix implementation of the Watchdog class.
      11             : //
      12             : //===----------------------------------------------------------------------===//
      13             : 
      14             : #include "llvm/Config/config.h"
      15             : 
      16             : #ifdef HAVE_UNISTD_H
      17             : #include <unistd.h>
      18             : #endif
      19             : 
      20             : namespace llvm {
      21             :   namespace sys {
      22           0 :     Watchdog::Watchdog(unsigned int seconds) {
      23             : #ifdef HAVE_UNISTD_H
      24           0 :       alarm(seconds);
      25             : #endif
      26           0 :     }
      27             : 
      28           0 :     Watchdog::~Watchdog() {
      29             : #ifdef HAVE_UNISTD_H
      30           0 :       alarm(0);
      31             : #endif
      32           0 :     }
      33             :   }
      34             : }

Generated by: LCOV version 1.13