Sha256: 2418025682b4ab1c86bffb4096e6e4da3379c92eb595d064d4b3d810705d30fa

Contents?: true

Size: 918 Bytes

Versions: 1

Compression:

Stored size: 918 Bytes

Contents

#include <stdint.h>

#ifdef _MSC_VER
#pragma once
#endif

#ifndef WUTYPES_INCLUDED
#define WUTYPES_INCLUDED

typedef uint64_t XPTR, LXPTR;
typedef uint64_t TIMESTAMP;
typedef void *TICKET;


/* [TIMESTAMP_MIN, TIMESTAMP_MAX] is the range of valid timestamps; values outside this
   range have the special interpretation. One of the special timestamp values is
   INVALID_TIMESTAMP. Other "special" values may have a module-specific meaning
   or may be used internally for some purposes. */ 
#define TIMESTAMP_MIN		UINT64_C(0x0000000000010000)
#define TIMESTAMP_MAX		UINT64_C(0xFFFFFFFFFFFF0000)

inline
static
bool IsValidTimestamp(TIMESTAMP ts)
{
	return ts>=TIMESTAMP_MIN && ts<=TIMESTAMP_MAX;
}

/* INVALID_TIMESTAMP is the greatest possible value for the variable of TIMESTAMP type */ 
#define INVALID_TIMESTAMP	UINT64_C(0xFFFFFFFFFFFFFFFF)

#define INVALID_TICKET		NULL

#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sedna-0.6.0 vendor/sedna/kernel/common/wutypes.h