diff options
author | Mike Buland <mbuland@penny-arcade.com> | 2018-05-25 14:16:49 -0700 |
---|---|---|
committer | Mike Buland <mbuland@penny-arcade.com> | 2018-05-25 14:16:49 -0700 |
commit | f31d308827f848fdcd8ad61b89513f3c20b34e20 (patch) | |
tree | c4ef925e3fb187598eaa7fdc39f9be7edd7fd1da | |
parent | caa56a972c203ff7938b3f972afc33080aac68c1 (diff) | |
download | libbu++-f31d308827f848fdcd8ad61b89513f3c20b34e20.tar.gz libbu++-f31d308827f848fdcd8ad61b89513f3c20b34e20.tar.bz2 libbu++-f31d308827f848fdcd8ad61b89513f3c20b34e20.tar.xz libbu++-f31d308827f848fdcd8ad61b89513f3c20b34e20.zip |
SynchroHeap has a signalall method now.
-rw-r--r-- | src/stable/synchroheap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stable/synchroheap.h b/src/stable/synchroheap.h index 272f309..820e8da 100644 --- a/src/stable/synchroheap.h +++ b/src/stable/synchroheap.h | |||
@@ -140,6 +140,13 @@ namespace Bu | |||
140 | return iRet; | 140 | return iRet; |
141 | } | 141 | } |
142 | 142 | ||
143 | void unblockAll() | ||
144 | { | ||
145 | icBlock.lock(); | ||
146 | icBlock.broadcast(); | ||
147 | icBlock.unlock(); | ||
148 | } | ||
149 | |||
143 | private: | 150 | private: |
144 | Heap< item, cmpfunc, itemalloc > hData; | 151 | Heap< item, cmpfunc, itemalloc > hData; |
145 | Mutex imData; | 152 | Mutex imData; |