use std mutex instead of boost mutex

This commit is contained in:
James Ravenscroft 2023-08-24 14:55:23 +01:00
parent 143155dac3
commit ae2d505a2f

View File

@ -7,7 +7,7 @@
#include <map>
#include <vector>
#include <random>
#include <boost/thread.hpp>
#include <mutex>
typedef void (*offload_func_t)(struct ggml_tensor * tensor);
void ggml_nop(struct ggml_tensor * tensor);
@ -64,7 +64,7 @@ protected:
virtual std::stringstream predict_impl(std::string prompt, int max_length, bool include_prompt) = 0;
ModelConfig config;
std::mt19937 &rng;
boost::mutex model_lock;
std::mutex model_lock;
};
#endif //__TURBOPILOT_MODEL_H