VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vlShmReader.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
8 #pragma once
9 
10 #include "vlShmQueue.h"
11 
12 #define DEBUG 0
13 
14 #define DtCsStatusMessageReceived 0
15 #define DtCsStatusWouldResourceBlock 1
16 #define DtCsStatusWouldBlock 2
17 #define DtCsStatusClosing 3
18 #define DtCsStatusExtCliQuota 4
19 #define DtCsStatusTryAgain 5
20 
21 #define DtCsStatusMessageReceived 0
22 #define DtCsStatusWouldResourceBlock 1
23 #define DtCsStatusWouldBlock 2
24 #define DtCsStatusClosing 3
25 #define DtCsStatusExtCliQuota 4
26 
27 #ifdef DtUSE_UTILITIES_NAMESPACE
28 namespace DtUSE_UTILITIES_NAMESPACE
29 {
30 #endif
31 
33 
35 {
36  public:
38  virtual ~DtClientServerReader() {};
39 
40  virtual int Read(char *buf, size_t size, char *status) = 0;
41 };
42 
44 {
45  public:
46 
48 
49  DtShmMsgQueueReader(DtShmMsgQueue *q, int size, int sem, int firstSem,
50  bool wait, bool pleaseInit, bool dropOldest = true);
51 
52  virtual ~DtShmMsgQueueReader() {}
53 
54  int Read(char *buf, size_t size, char *status);
55 
56  bool isInternal() { return qManager.isInternal(); }
57  int msgsRcvd() { return msgsRead; }
58 
60 
61  private:
62 
63  int msgsRead;
64 
65 #if DEBUG
66  int verifyQueue(void);
67 #endif
68 
69 };
70 
71 #ifdef DtUSE_UTILITIES_NAMESPACE
72 }
73 #endif
74 
Definition: vlShmQueue.h:75
int msgsRcvd()
Definition: vlShmReader.h:57
bool resourceWait
Definition: vlShmReader.h:59
virtual ~DtClientServerReader()
Definition: vlShmReader.h:38
but not necessarily empty queue
Definition: vlShmReader.h:34
int msgsRead
Definition: vlShmReader.h:63
DtClientServerReader()
Definition: vlShmReader.h:37
Definition: vlShmQueue.h:83
DtShmMsgQueueManager qManager
Definition: vlShmReader.h:47
Definition: vlShmReader.h:43
virtual ~DtShmMsgQueueReader()
Definition: vlShmReader.h:52
This file contains the declaration of DtShmMsgQueueManager.
bool isInternal()
Definition: vlShmReader.h:56
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:109

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)