Index: src/IceGlobalContext.h |
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h |
index 79c23d61c7e38e7d33eba5c6df6d0570de59dd3b..29bb061a66c615958e0da8433629a7515a5fa996 100644 |
--- a/src/IceGlobalContext.h |
+++ b/src/IceGlobalContext.h |
@@ -277,12 +277,12 @@ public: |
// queue. Notifies any idle workers that a new function is |
// available for translating. May block if the work queue is too |
// large, in order to control memory footprint. |
- void cfgQueueBlockingPush(Cfg *Func) { CfgQ.blockingPush(Func); } |
+ void cfgQueueBlockingPush(std::unique_ptr<Cfg> Func); |
// Takes a Cfg from the work queue for translating. May block if |
// the work queue is currently empty. Returns nullptr if there is |
// no more work - the queue is empty and either end() has been |
// called or the Sequential flag was set. |
- Cfg *cfgQueueBlockingPop() { return CfgQ.blockingPop(); } |
+ std::unique_ptr<Cfg> cfgQueueBlockingPop(); |
// Notifies that no more work will be added to the work queue. |
void cfgQueueNotifyEnd() { CfgQ.notifyEnd(); } |