interplane.Get Omega
Read in your language

ggml

[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)

Brought by drakestapleton

branch master Branches Tags History

ggml / src / ggml-threading.cpp

12 lines · 250 bytes Raw Blame History
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}