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

rt_client.cc File Reference


Detailed Description

CORBA Client used to drive the real-time synthetic server.

See also:
RTServer.idl

rt_server.cc

Definition in file rt_client.cc.

Include dependency graph for rt_client.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 sigalrm_handler (int sig)
 Handle SIGALRM signal by exiting.

int main (int argc, char *argv[])

Variables

CORBA::ORB_var orb
 The CORBA ORB for this process.


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 75 of file rt_client.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 48 of file rt_client.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 64 of file rt_client.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 55 of file rt_client.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 91 of file rt_client.cc.


Function Documentation

void sigalrm_handler int  sig  )  [static]
 

Handle SIGALRM signal by exiting.

Parameters:
sig The actual signal received.

Definition at line 112 of file rt_client.cc.

References orb.


Generated on Mon Dec 1 16:30:17 2003 for CPU Broker by doxygen 1.3.4