Debian Codegraph @

terps/tads/tads3/osnetdum.h

raw symbols SCIP
1 /* $Header$ */
2
3 /* Copyright (c) 2010 by Michael J. Roberts. All Rights Reserved. */
4 /*
5 Name
6 osnetdum.h - dummy implementation of TADS networking for non-supporting
7 platforms
8 Function
9 This module provides a stub implementation of the portions of the
10 portable networking interface that are required to link the rest of the
11 system. This should be used on platforms that don't provide TADS
12 networking functionality.
13 Notes
14
15 Modified
16 08/11/10 MJRoberts - Creation
17 */
18
19 #ifndef OSNETDUM_H
20 #define OSNETDUM_H
21
22 class OS_Counter
23 {
24 public:
25 OS_Counter(long c = 1) { cnt = c; }
26 long get() const { return cnt; }
27 long inc() { return ++cnt; }
28 long dec() { return --cnt; }
29
30 private:
31 long cnt;
32 };
33
34 #include "vmrefcnt.h"
35
36 class OS_Event: public CVmRefCntObj
37 {
38 public:
39 OS_Event(int /*manual_reset*/) { }
40 void signal() { }
41 void reset() { }
42 };
43
44
45 #endif /* OSNETDUM_H */