File: dataStructure.tex

package info (click to toggle)
spooles 2.2-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 18,824 kB
  • ctags: 3,665
  • sloc: ansic: 146,828; csh: 3,615; makefile: 2,045; perl: 70
file content (41 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download | duplicates (7)
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
\par
\section{Data Structure}
\label{section:ChvManager:dataStructure}
\par
\par
The {\tt ChvList} structure has the following fields.
\begin{itemize}
\item
{\tt Chv *head} : 
vector of pointers to the heads of the list of {\tt Chv} objects.
\item
{\tt Lock *lock} : mutual exclusion lock.
\item
{\tt int mode} : behavior mode.
When {\tt mode = 0}, the object calls {\tt SubMtx\_new()}
and {\tt SubMtx\_free()} to create and release objects.
When {\tt mode = 1}, the object recycles the objects.
\item
{\tt int nactive} : 
number of active instances.
\item
{\tt int nbytesactive} : 
number of bytes that are active.
\item
{\tt int nbytesrequested} : 
number of bytes that have been requested.
\item
{\tt int nbytesalloc} : 
number of bytes that have been allocated.
\item
{\tt int nrequests} : 
number of requests for instances.
\item
{\tt int releases} : 
number of instances that have been released.
\item
{\tt int nlocks} : 
total number of locks made on the mutual exclusion lock.
{\tt int nunlocks} : 
total number of unlocks made on the mutual exclusion lock.
\end{itemize}