Skip to content

Commit

Permalink
Clarify on LockRef origins
Browse files Browse the repository at this point in the history
  • Loading branch information
yfyf committed Oct 10, 2013
1 parent b36650d commit 4961144
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions report/chapters/our_work.tex
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,15 @@ \subsection{Interpreters and the environment}

\end{BVerbatim}

It is parametrised over a lock reference \code{LockRef}, which will be used to
access the locks and resource data via a small library we implemented for
demonstration purposes. It is also parametrised over an explicit lock count,
because our library doesn't support nested locks. We only keep the
lock count to describe how nested locking could be handled with a proper
interpreter.

Furthermore, we combine the interpretations of the resource states (i.e.
It is parametrised over a lock reference \code{LockRef}. The lock reference is
obtained by (externally) instantiating the resource and is then used to access
the locks and resource data. All of this is done via a small \code{Locks}
library we implemented for demonstration purposes. The resource is also
parametrised over an explicit lock count, because our library doesn't support
nested locks. We only keep the lock count to describe how nested locking could
be handled in a proper implementation.

Moving on, we combine the interpretations of the resource states (i.e.
\code{Vect n ResState}) into a resource \emph{environment} \code{REnv}:

\begin{BVerbatim}
Expand Down

0 comments on commit 4961144

Please sign in to comment.