Commit 0e2f88fe authored by Davis King's avatar Davis King

Made spec more clear.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403565
parent a6a90550
......@@ -76,6 +76,9 @@ namespace dlib
void lock (
) const;
/*!
requires
- The thread calling this function does not have any kind of lock on this
object
ensures
- if (there is any kind of lock on *this) then
- the calling thread is put to sleep until a write lock becomes available.
......@@ -105,6 +108,9 @@ namespace dlib
void lock_readonly (
) const;
/*!
requires
- The thread calling this function does not already have a write
lock on this object
ensures
- if (there is a write lock on *this or there are no free readonly locks) then
- the calling thread is put to sleep until there is no longer a write lock
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment