ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapdiag.h
Revision: 2.8
Committed: Tue Sep 17 16:36:05 2024 UTC (7 months, 1 week ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 2.7: +10 -3 lines
Log Message:
chore: Added extern "C" to headers to avoid C++ name mangling

File Contents

# Content
1 /* RCSid $Id: pmapdiag.h,v 2.7 2016/05/17 17:39:47 rschregle Exp $ */
2
3 /*
4 ==================================================================
5 Photon map diagnostic output and progress reports
6
7 Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
8 (c) Fraunhofer Institute for Solar Energy Systems,
9 (c) Lucerne University of Applied Sciences and Arts,
10 supported by the Swiss National Science Foundation (SNSF, #147053)
11 ==================================================================
12
13 $Id: pmapdiag.h,v 2.7 2016/05/17 17:39:47 rschregle Exp $
14 */
15
16
17 #ifndef PMAPDIAG_H
18 #define PMAPDIAG_H
19
20 #include "platform.h"
21
22 #ifdef NON_POSIX
23 #ifdef MINGW
24 #include <sys/time.h>
25 #endif
26 #else
27 #ifdef BSD
28 #include <sys/time.h>
29 #include <sys/resource.h>
30 #else
31 #include <sys/times.h>
32 #include <unistd.h>
33 #endif
34 #endif
35
36 #include <time.h>
37 #include <signal.h>
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42
43 /* Time at start & last report */
44 extern time_t repStartTime, repLastTime;
45 /* Report progress & completion counters */
46 extern unsigned long repProgress, repComplete, repEmitted;
47
48
49 void pmapDistribReport ();
50 /* Report photon distribution progress */
51
52 void pmapPreCompReport ();
53 /* Report global photon precomputation progress */
54
55 void pmapBiasCompReport (char *stats);
56 /* Append full bias compensation statistics to stats; interface to
57 * rpict's report() */
58
59 #ifdef PMAP_OOC
60 void pmapOOCCacheReport (char *stats);
61 /* Append full OOC I/O cache statistics to stats; interface to rpict's
62 * report() */
63 #endif
64
65 #ifdef __cplusplus
66 }
67 #endif
68
69 #endif