CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Signal Class Reference

#include <util_concurrency.h>

Inheritance diagram for Signal:
Collaboration diagram for Signal:

Public Member Functions

 Signal ()
 
 ~Signal ()
 
void Wakeup ()
 
void Wait ()
 
bool IsSleeping ()
 

Private Attributes

bool fired_
 
pthread_mutex_t lock_
 
pthread_cond_t signal_
 

Additional Inherited Members

- Private Member Functions inherited from SingleCopy
 SingleCopy ()
 

Detailed Description

A blocking signal for thread synchronization

Definition at line 418 of file util_concurrency.h.

Constructor & Destructor Documentation

Signal::Signal ( )

Definition at line 30 of file util_concurrency.cc.

Here is the call graph for this function:

Signal::~Signal ( )

Definition at line 38 of file util_concurrency.cc.

Here is the call graph for this function:

Member Function Documentation

bool Signal::IsSleeping ( )

Definition at line 64 of file util_concurrency.cc.

Referenced by TarIngestionSource::TarIngestionSource(), and ~Signal().

Here is the caller graph for this function:

void Signal::Wait ( )

Definition at line 47 of file util_concurrency.cc.

Referenced by ExternalCacheManager::CallRemotely(), and publish::SyncUnionTarball::Traverse().

Here is the call graph for this function:

Here is the caller graph for this function:

void Signal::Wakeup ( )

Definition at line 57 of file util_concurrency.cc.

Referenced by TarIngestionSource::Close(), ExternalCacheManager::MainRead(), publish::SyncUnionTarball::ProcessArchiveEntry(), and publish::SyncUnionTarball::Traverse().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool Signal::fired_
private

Definition at line 427 of file util_concurrency.h.

Referenced by IsSleeping(), Wait(), and Wakeup().

pthread_mutex_t Signal::lock_
private

Definition at line 428 of file util_concurrency.h.

Referenced by IsSleeping(), Signal(), Wait(), Wakeup(), and ~Signal().

pthread_cond_t Signal::signal_
private

Definition at line 429 of file util_concurrency.h.

Referenced by Signal(), Wait(), Wakeup(), and ~Signal().


The documentation for this class was generated from the following files: