diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-28 16:37:31 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-28 16:37:31 +0000 |
commit | fb7ae2aa5994040abb1baed237ad25ba5e1e7b30 (patch) | |
tree | 64d206a201aeb80effae66fee59346076c4080ab /libadhocutil/semaphore.h | |
parent | Fix up and test behaviour of resource handles that are orphaned from a delete... (diff) | |
download | libadhocutil-fb7ae2aa5994040abb1baed237ad25ba5e1e7b30.tar.bz2 libadhocutil-fb7ae2aa5994040abb1baed237ad25ba5e1e7b30.tar.xz libadhocutil-fb7ae2aa5994040abb1baed237ad25ba5e1e7b30.zip |
Add support for querying semaphore value
Diffstat (limited to 'libadhocutil/semaphore.h')
-rw-r--r-- | libadhocutil/semaphore.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libadhocutil/semaphore.h b/libadhocutil/semaphore.h index 3e7e476..3411543 100644 --- a/libadhocutil/semaphore.h +++ b/libadhocutil/semaphore.h @@ -22,6 +22,8 @@ namespace AdHoc { /// Wait for a single count with timeout. /// @param ms Timeout in milliseconds. bool wait(unsigned int ms); + /// Free + unsigned int freeCount() const; private: boost::mutex mutex; |