LLVM API Documentation

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

Alarm.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  llvm
namespace  llvm::sys

Functions

void SetupAlarm (unsigned seconds)
void TerminateAlarm ()
int AlarmStatus ()


Function Documentation

int AlarmStatus  ) 
 

This function acquires the status of the alarm.

Returns:
-1=cancelled, 0=untriggered, 1=triggered

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

void SetupAlarm unsigned  seconds  ) 
 

This function registers an alarm to trigger some number of seconds in the future. When that time arrives, the AlarmStatus function will begin to return 1 instead of 0. The user must poll the status of the alarm by making occasional calls to AlarmStatus. If the user sends an interrupt signal, AlarmStatus will begin returning -1, even if the alarm event occurred.

Returns:
nothing
Parameters:
seconds  Number of seconds in future when alarm arrives

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

void TerminateAlarm  ) 
 

This function terminates the alarm previously set up

Returns:
nothing

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




This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.