3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

revert to STL allocated memory to be orthogonal to memory manager behavior

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-10-22 12:12:32 -07:00
parent a083633ab4
commit a4aa87b6c9

View file

@ -27,6 +27,7 @@ Revision History:
#include <condition_variable>
#include <mutex>
#include <thread>
#include <vector>
struct state {
std::thread * m_thread { nullptr };
@ -43,7 +44,7 @@ struct state {
* destructing threads blocked on condition variables leads to
* deadlock.
*/
static ptr_vector<state> available_workers;
static std::vector<state*> available_workers;
static std::mutex workers;
static void thread_func(state *s) {