b664585
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "ggml-threading.h" #include <mutex> std::mutex ggml_critical_section_mutex; void ggml_critical_section_start() { ggml_critical_section_mutex.lock(); } void ggml_critical_section_end(void) { ggml_critical_section_mutex.unlock(); }