CPN
Computational Process Networks
PthreadConditionAttr.h
Go to the documentation of this file.
1 //=============================================================================
2 // PthreadConditionAttr class
3 //-----------------------------------------------------------------------------
4 // POSIX Pthread class library
5 // Copyright (C) 1997-1999 The University of Texas
6 //
7 // This library is free software; you can redistribute it and/or modify it
8 // under the terms of the GNU Library General Public License as published
9 // by the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
11 //
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // Library General Public License for more details.
16 //
17 // The GNU Public License is available in the file LICENSE, or you
18 // can write to the Free Software Foundation, Inc., 59 Temple Place -
19 // Suite 330, Boston, MA 02111-1307, USA, or you can find it on the
20 // World Wide Web at http://www.fsf.org.
21 //=============================================================================
22 
23 
24 #ifndef PthreadConditionAttr_h
25 #define PthreadConditionAttr_h
26 #pragma once
27 
28 #ifdef EXTERNAL_TEMPLATES
29 # pragma interface
30 #endif
31 
32 #include <cpn/common.h>
34 #ifdef _POSIX_THREADS
35 
37 
38 
40  public:
43 
44  operator pthread_condattr_t* (void) { return &condAttr; }
45  operator const pthread_condattr_t* (void) const { return &condAttr; }
46 
47  #ifdef _POSIX_THREAD_PROCESS_SHARED
48  int ProcessShared(void);
49  PthreadConditionAttr& ProcessShared(int pshared);
50  #endif
51 
52  private:
53  pthread_condattr_t condAttr;
54 };
55 
56 
57 #endif
58 #endif
pthread_condattr_t condAttr