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 (17 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
\par
\section{Data Structure}
\label{section:Lock:dataStructure}
\par
The {\tt Lock} structure has three fields.
\begin{itemize}
\item {\tt int nlocks} : number of locks made.
\item {\tt int nunlocks} : number of unlocks made.
\item the mutual exclusion lock
\par
For Solaris threads we have {\tt mutex\_t *mutex}.
\par
For POSIX threads we have {\tt pthread\_mutex\_t *mutex}.
\par
For no threads we have {\tt void *mutex}.
\end{itemize}