Last change
on this file since 6666 was
6496,
checked in by ldelgass, 8 years ago
|
Add basic model layer support, bump version
|
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 | |
---|
15 | namespace GeoVis { |
---|
16 | |
---|
17 | class Renderer; |
---|
18 | class ReadBuffer; |
---|
19 | class CommandQueue; |
---|
20 | class ResponseQueue; |
---|
21 | class Stats; |
---|
22 | |
---|
23 | #define GEOVIS_VERSION_STRING "0.7.4" |
---|
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 | |
---|
31 | extern Stats g_stats; |
---|
32 | |
---|
33 | extern int g_fdIn; |
---|
34 | extern int g_fdOut; |
---|
35 | extern FILE *g_fOut; |
---|
36 | extern FILE *g_fLog; |
---|
37 | extern Renderer *g_renderer; |
---|
38 | extern ReadBuffer *g_inBufPtr; |
---|
39 | #ifdef USE_THREADS |
---|
40 | #ifdef USE_READ_THREAD |
---|
41 | extern CommandQueue *g_inQueue; |
---|
42 | #endif |
---|
43 | extern ResponseQueue *g_outQueue; |
---|
44 | #endif |
---|
45 | extern int g_statsFile; |
---|
46 | extern int writeToStatsFile(int f, const char *s, size_t length); |
---|
47 | extern int getStatsFile(const char *key = NULL); |
---|
48 | |
---|
49 | } |
---|
50 | |
---|
51 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.