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

RKObserverAdvocate.cc File Reference


Detailed Description

Implementation of the RKObserverAdvocate class.

Definition in file RKObserverAdvocate.cc.

Include dependency graph for RKObserverAdvocate.cc:

Include dependency graph

Go to the source code of this file.

Defines

#define timespecclear(tvp)   ((tvp)->tv_sec = (tvp)->tv_nsec = 0)
 Clear a timespec structure.
#define timespecisset(tvp)   ((tvp)->tv_sec || (tvp)->tv_nsec)
 Test if a timespec has non-zero values.
#define timespeccmp(tvp, uvp, cmp)
 Compare two timespec structures.
#define timespecadd(vvp, uvp)
 Add one timespec to another.
#define timespecsub(vvp, uvp)
 Subtract one timespec from another.

Functions

void * trampoline (void *arg)
 Trampoline function for new threads that calls the 'run' method of RKObserverAdvocate.


Define Documentation

#define timespecadd vvp,
uvp   ) 
 

Value:

do {                                                            \
                (vvp)->tv_sec += (uvp)->tv_sec;                         \
                (vvp)->tv_nsec += (uvp)->tv_nsec;                       \
                if ((vvp)->tv_nsec >= 1000000000) {                     \
                        (vvp)->tv_sec++;                                \
                        (vvp)->tv_nsec -= 1000000000;                   \
                }                                                       \
        } while (0)
Add one timespec to another.

Parameters:
vvp Pointer to the timespec that will be added to.
uvp Pointer to the timespec to add.

Definition at line 66 of file RKObserverAdvocate.cc.

#define timespecclear tvp   )     ((tvp)->tv_sec = (tvp)->tv_nsec = 0)
 

Clear a timespec structure.

Parameters:
tvp Pointer to the timespec object to clear.

Definition at line 39 of file RKObserverAdvocate.cc.

#define timespeccmp tvp,
uvp,
cmp   ) 
 

Value:

(((tvp)->tv_sec == (uvp)->tv_sec) ?                             \
            ((tvp)->tv_nsec cmp (uvp)->tv_nsec) :                       \
            ((tvp)->tv_sec cmp (uvp)->tv_sec))
Compare two timespec structures.

Parameters:
tvp Pointer to the 'left hand side' of the comparison.
uvp Pointer to the 'right hande side' of the comparison.
cmp The comparison operator. (e.g. '<', '>', ...)

Definition at line 55 of file RKObserverAdvocate.cc.

#define timespecisset tvp   )     ((tvp)->tv_sec || (tvp)->tv_nsec)
 

Test if a timespec has non-zero values.

Parameters:
tvp Pointer to the timespec object to check.

Definition at line 46 of file RKObserverAdvocate.cc.

#define timespecsub vvp,
uvp   ) 
 

Value:

do {                                                            \
                (vvp)->tv_sec -= (uvp)->tv_sec;                         \
                (vvp)->tv_nsec -= (uvp)->tv_nsec;                       \
                if ((vvp)->tv_nsec < 0) {                               \
                        (vvp)->tv_sec--;                                \
                        (vvp)->tv_nsec += 1000000000;                   \
                }                                                       \
        } while (0)
Subtract one timespec from another.

Parameters:
vvp Pointer to the timespec that will be subtracted from.
uvp Pointer to the timespec to subtract.

Definition at line 82 of file RKObserverAdvocate.cc.


Function Documentation

void* trampoline void *  arg  )  [static]
 

Trampoline function for new threads that calls the 'run' method of RKObserverAdvocate.

Parameters:
arg The RKObserverAdvocate object.
Returns:
NULL.

Definition at line 100 of file RKObserverAdvocate.cc.

References require, and RKObserverAdvocate::run().

Referenced by RKObserverAdvocate::BeginCPUScheduling().

Here is the call graph for this function:


Generated on Fri Oct 22 07:50:49 2004 for CPU Broker by  doxygen 1.3.9.1