LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SlowOperationInformer.cpp File Reference

#include "llvm/Support/SlowOperationInformer.h"
#include "llvm/Config/config.h"
#include <iostream>
#include <sstream>
#include <signal.h>
#include <unistd.h>
#include <cassert>

Include dependency graph for SlowOperationInformer.cpp:

Go to the source code of this file.

Functions

static RETSIGTYPE SigIntHandler (int Sig)
static RETSIGTYPE SigAlarmHandler (int Sig)

Variables

static volatile bool OperationCancelled
static volatile bool ShouldShowStatus
static bool NestedSOI = false
static void(* OldSigIntHandler )(int)


Function Documentation

static RETSIGTYPE SigAlarmHandler int  Sig  )  [static]
 

Definition at line 40 of file SlowOperationInformer.cpp.

References ShouldShowStatus.

Referenced by llvm::SlowOperationInformer::SlowOperationInformer().

static RETSIGTYPE SigIntHandler int  Sig  )  [static]
 

Definition at line 35 of file SlowOperationInformer.cpp.

References OperationCancelled.

Referenced by llvm::SlowOperationInformer::SlowOperationInformer().


Variable Documentation

bool NestedSOI = false [static]
 

NestedSOI - Sanity check. SlowOperationInformers cannot be nested or run in parallel. This ensures that they never do.

Definition at line 33 of file SlowOperationInformer.cpp.

Referenced by llvm::SlowOperationInformer::SlowOperationInformer(), and llvm::SlowOperationInformer::~SlowOperationInformer().

void(* OldSigIntHandler)(int) [static]
 

Definition at line 44 of file SlowOperationInformer.cpp.

Referenced by llvm::SlowOperationInformer::SlowOperationInformer(), and llvm::SlowOperationInformer::~SlowOperationInformer().

volatile bool OperationCancelled [static]
 

OperationCancelled - This flag is set by the SIGINT signal handler if the user presses CTRL-C.

Definition at line 25 of file SlowOperationInformer.cpp.

Referenced by llvm::SlowOperationInformer::progress(), SigIntHandler(), and llvm::SlowOperationInformer::SlowOperationInformer().

volatile bool ShouldShowStatus [static]
 

ShouldShowStatus - This flag gets set if the operation takes a long time.

Definition at line 29 of file SlowOperationInformer.cpp.

Referenced by llvm::SlowOperationInformer::progress(), SigAlarmHandler(), and llvm::SlowOperationInformer::SlowOperationInformer().