aboutsummaryrefslogtreecommitdiff
path: root/src/stable
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2018-05-25 14:16:49 -0700
committerMike Buland <mbuland@penny-arcade.com>2018-05-25 14:16:49 -0700
commitf31d308827f848fdcd8ad61b89513f3c20b34e20 (patch)
treec4ef925e3fb187598eaa7fdc39f9be7edd7fd1da /src/stable
parentcaa56a972c203ff7938b3f972afc33080aac68c1 (diff)
downloadlibbu++-f31d308827f848fdcd8ad61b89513f3c20b34e20.tar.gz
libbu++-f31d308827f848fdcd8ad61b89513f3c20b34e20.tar.bz2
libbu++-f31d308827f848fdcd8ad61b89513f3c20b34e20.tar.xz
libbu++-f31d308827f848fdcd8ad61b89513f3c20b34e20.zip
SynchroHeap has a signalall method now.
Diffstat (limited to 'src/stable')
-rw-r--r--src/stable/synchroheap.h7
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;