mirror of
https://github.com/ravenscroftj/turbopilot.git
synced 2024-07-01 00:31:27 +00:00
use std mutex instead of boost mutex
This commit is contained in:
parent
143155dac3
commit
ae2d505a2f
|
@ -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
|
Loading…
Reference in New Issue
Block a user