Team Ai
Apppublic

KBaba7/llama.cpp

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
ggml-threading.cpp13 linesDownload Raw Back to src
1#include "ggml-threading.h"2#include <mutex>3 4std::mutex ggml_critical_section_mutex;5 6void ggml_critical_section_start() {7    ggml_critical_section_mutex.lock();8}9 10void ggml_critical_section_end(void) {11    ggml_critical_section_mutex.unlock();12}13