Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
stxxl::semaphore Class Reference

#include <semaphore.h>

Inheritance diagram for stxxl::semaphore:
Inheritance graph
[legend]
Collaboration diagram for stxxl::semaphore:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 semaphore (int init_value=1)
 ~semaphore ()
int operator++ (int)
int operator-- (int)
int decrement ()

Private Attributes

int v
pthread_mutex_t mutex
pthread_cond_t cond

Detailed Description

Definition at line 29 of file semaphore.h.


Constructor & Destructor Documentation

stxxl::semaphore::semaphore ( int  init_value = 1) [inline]

Definition at line 41 of file semaphore.h.

References check_pthread_call.

Definition at line 48 of file semaphore.h.

References check_pthread_call, and stxxl_function_error.


Member Function Documentation

int stxxl::semaphore::decrement ( ) [inline]

Definition at line 103 of file semaphore.h.

References check_pthread_call.

int stxxl::semaphore::operator++ ( int  ) [inline]

Definition at line 63 of file semaphore.h.

References check_pthread_call.

int stxxl::semaphore::operator-- ( int  ) [inline]

Definition at line 80 of file semaphore.h.

References check_pthread_call.


Member Data Documentation

pthread_cond_t stxxl::semaphore::cond [private]

Definition at line 37 of file semaphore.h.

pthread_mutex_t stxxl::semaphore::mutex [private]

Definition at line 36 of file semaphore.h.

int stxxl::semaphore::v [private]

Definition at line 31 of file semaphore.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines