cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
svlSyncPoint.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Balazs Vagvolgyi
7  Created on: 2008
8 
9  (C) Copyright 2006-2008 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 
20 */
21 
22 #ifndef _svlSyncPoint_h
23 #define _svlSyncPoint_h
24 
27 
28 // Always include last!
30 
31 
33 {
34 public:
35  svlSyncPoint();
36  virtual ~svlSyncPoint();
37 
38  int Count(unsigned int count);
39  unsigned int Count();
40  int Sync(unsigned int _id);
41  void ReleaseAll();
42 
43 private:
44  unsigned int ThreadCount;
45  int LastChanged;
46  unsigned int CheckedInCounter;
47  osaThreadSignal* ReleaseEvent;
49 };
50 
51 #endif // _svlSyncPoint_h
52 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Definition: svlSyncPoint.h:32
Definition: osaCriticalSection.h:36
Declaration of osaThreadSignal.
Macros to export the symbols of cisstStereoVision (in a Dll).
Definition: osaThreadSignal.h:40