summaryrefslogtreecommitdiff
path: root/libadhocutil/semaphore.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-28 16:37:31 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-28 16:37:31 +0000
commitfb7ae2aa5994040abb1baed237ad25ba5e1e7b30 (patch)
tree64d206a201aeb80effae66fee59346076c4080ab /libadhocutil/semaphore.h
parentFix up and test behaviour of resource handles that are orphaned from a delete... (diff)
downloadlibadhocutil-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.h2
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;