File: MutexCounter.3cc

package info (click to toggle)
libcommoncpp2 1.0.13-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,740 kB
  • ctags: 2,860
  • sloc: cpp: 18,857; sh: 8,451; ansic: 1,546; makefile: 299; xml: 5
file content (55 lines) | stat: -rw-r--r-- 1,411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.TH "MutexCounter" 3 "19 Jul 2003" "CommonC++" \" -*- nroff -*-
.ad l
.nh
.SH NAME
MutexCounter \- The \fBMutex\fP Counter is a counter variable which can safely be incremented or decremented by multiple threads. \fBThread\fP protected integer counter. 
.SH SYNOPSIS
.br
.PP
\fC#include <thread.h>\fP
.PP
Inherits \fBMutex\fP.
.PP
.SS "Public Methods"

.in +1c
.ti -1c
.RI "\fBMutexCounter\fP ()"
.br
.ti -1c
.RI "\fBMutexCounter\fP (int initial)"
.br
.ti -1c
.RI "friend \fBCCXX_EXPORT\fP (int) operator++(MutexCounter &mc)"
.br
.ti -1c
.RI "friend \fBCCXX_EXPORT\fP (int) operator--(MutexCounter &mc)"
.br
.in -1c
.SH "DETAILED DESCRIPTION"
.PP 
The \fBMutex\fP Counter is a counter variable which can safely be incremented or decremented by multiple threads. \fBThread\fP protected integer counter.
.PP
A \fBMutex\fP is used to protect access to the counter variable (an integer). An initial value can be specified  for the counter, and it can be manipulated with the ++ and -- operators.
.PP
\fBAuthor: \fP
.in +1c
David Sugar <dyfet@ostel.com> 
.PP
.SH "CONSTRUCTOR & DESTRUCTOR DOCUMENTATION"
.PP 
.SS "MutexCounter::MutexCounter ()"
.PP
.SS "MutexCounter::MutexCounter (int initial)"
.PP
.SH "MEMBER FUNCTION DOCUMENTATION"
.PP 
.SS "MutexCounter::CCXX_EXPORT (int)"
.PP
.SS "MutexCounter::CCXX_EXPORT (int)"
.PP


.SH "AUTHOR"
.PP 
Generated automatically by Doxygen for CommonC++ from the source code.