File: dataStructure.tex

package info (click to toggle)
spooles 2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 19,012 kB
  • sloc: ansic: 146,834; csh: 3,615; makefile: 2,040; perl: 74
file content (25 lines) | stat: -rw-r--r-- 743 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
\par
\section{Data Structure}
\label{section:SubMtxList:dataStructure}
\par
\par
The {\tt SubMtxList} structure has the following fields.
\begin{itemize}
\item
{\tt int nlist} : number of lists.
\item
{\tt SubMtx **heads} : 
vector of pointers to the heads of the list of {\tt SubMtx} objects.
\item
{\tt int *counts} : vector of incoming counts for the lists.
\item
{\tt Lock *lock} : mutual exclusion lock.
\item
{\tt char *flags} : vector of lock flags for the lists.
If {\tt flags[ilist] == 'N'}, the list does not need to be locked.
If {\tt flags[ilist] == 'Y'}, the list does need to be locked.
Used only when {\tt lock} is not {\tt NULL}.
\item
{\tt int nlocks} : 
total number of locks made on the mutual exclusion lock.
\end{itemize}