CUBRID Engine  latest
cache_time.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cache_time
 

Macros

#define CACHE_TIME_AS_ARGS(ct)   (ct)->sec, (ct)->usec
 
#define CACHE_TIME_EQ(T1, T2)   (((T1)->sec != 0) && ((T1)->sec == (T2)->sec) && ((T1)->usec == (T2)->usec))
 
#define CACHE_TIME_RESET(T)
 
#define CACHE_TIME_MAKE(CT, TV)
 
#define OR_CACHE_TIME_SIZE   (OR_INT_SIZE * 2)
 
#define OR_PACK_CACHE_TIME(PTR, T)
 
#define OR_UNPACK_CACHE_TIME(PTR, T)
 

Typedefs

typedef struct cache_time CACHE_TIME
 

Macro Definition Documentation

#define CACHE_TIME_AS_ARGS (   ct)    (ct)->sec, (ct)->usec
#define CACHE_TIME_EQ (   T1,
  T2 
)    (((T1)->sec != 0) && ((T1)->sec == (T2)->sec) && ((T1)->usec == (T2)->usec))
#define CACHE_TIME_MAKE (   CT,
  TV 
)
Value:
do \
{ \
(CT)->sec = (TV)->tv_sec; \
(CT)->usec = (TV)->tv_usec; \
} \
while (0)
while(1)
Definition: cnvlex.c:816

Definition at line 48 of file cache_time.h.

Referenced by xcache_insert(), and xqmgr_execute_query().

#define CACHE_TIME_RESET (   T)
Value:
do \
{ \
(T)->sec = 0; \
(T)->usec = 0; \
} \
while (0)
while(1)
Definition: cnvlex.c:816

Definition at line 40 of file cache_time.h.

Referenced by db_init_query_result(), db_query_get_cache_time(), do_execute_select(), do_execute_session_statement(), sqmgr_execute_query(), and xqmgr_execute_query().

#define OR_CACHE_TIME_SIZE   (OR_INT_SIZE * 2)

Definition at line 56 of file cache_time.h.

Referenced by qmgr_execute_query(), and sqmgr_execute_query().

#define OR_PACK_CACHE_TIME (   PTR,
 
)
Value:
do \
{ \
if ((CACHE_TIME *) (T) != NULL) \
{ \
PTR = or_pack_int (PTR, (T)->sec); \
PTR = or_pack_int (PTR, (T)->usec); \
} \
{ \
PTR = or_pack_int (PTR, 0); \
PTR = or_pack_int (PTR, 0); \
} \
} \
while (0)
#define NULL
Definition: freelistheap.h:34
if(extra_options)
Definition: dynamic_load.c:958
char * or_pack_int(char *ptr, int number)
else
while(1)
Definition: cnvlex.c:816

Definition at line 58 of file cache_time.h.

Referenced by qmgr_execute_query(), and sqmgr_execute_query().

#define OR_UNPACK_CACHE_TIME (   PTR,
 
)
Value:
do \
{ \
if ((CACHE_TIME *) (T) != NULL) \
{ \
PTR = or_unpack_int (PTR, &((T)->sec)); \
PTR = or_unpack_int (PTR, &((T)->usec)); \
} \
} \
while (0)
#define NULL
Definition: freelistheap.h:34
if(extra_options)
Definition: dynamic_load.c:958
char * or_unpack_int(char *ptr, int *number)
while(1)
Definition: cnvlex.c:816

Definition at line 74 of file cache_time.h.

Referenced by qmgr_execute_query(), and sqmgr_execute_query().

Typedef Documentation

typedef struct cache_time CACHE_TIME

Definition at line 28 of file cache_time.h.