source: geovis/trunk/RenderServer.h @ 6295

Last change on this file since 6295 was 6281, checked in by ldelgass, 9 years ago

Update select protocol response to use add|delete|set sub-command

File size: 1.1 KB
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2013-2015  HUBzero Foundation, LLC
4 *
5 * Author: Leif Delgass <ldelgass@purdue.edu>
6 */
7
8#ifndef GEOVIS_RENDERSERVER_H
9#define GEOVIS_RENDERSERVER_H
10
11#include <stdio.h>
12#include <sys/types.h>
13#include <sys/time.h>
14
15namespace GeoVis {
16
17class Renderer;
18class ReadBuffer;
19class CommandQueue;
20class ResponseQueue;
21class Stats;
22
23#define GEOVIS_VERSION_STRING "0.7.2"
24
25#define MSECS_ELAPSED(t1, t2) \
26    ((t1).tv_sec == (t2).tv_sec ? (((t2).tv_usec - (t1).tv_usec)/1.0e+3) : \
27     (((t2).tv_sec - (t1).tv_sec))*1.0e+3 + (double)((t2).tv_usec - (t1).tv_usec)/1.0e+3)
28
29#define CVT2SECS(x)  ((double)(x).tv_sec) + ((double)(x).tv_usec * 1.0e-6)
30
31extern Stats g_stats;
32
33extern int g_fdIn;
34extern int g_fdOut;
35extern FILE *g_fOut;
36extern FILE *g_fLog;
37extern Renderer *g_renderer;
38extern ReadBuffer *g_inBufPtr;
39#ifdef USE_THREADS
40#ifdef USE_READ_THREAD
41extern CommandQueue *g_inQueue;
42#endif
43extern ResponseQueue *g_outQueue;
44#endif
45extern int g_statsFile;
46extern int writeToStatsFile(int f, const char *s, size_t length);
47extern int getStatsFile(const char *key = NULL);
48
49}
50
51#endif
Note: See TracBrowser for help on using the repository browser.