Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-threading.cpp # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-threading.cpp` 12 lines ยท 250 bytes Raw Blame History 1 #include "ggml-threading.h" 2 #include 3 4 std::mutex ggml_critical_section_mutex; 5 6 void ggml_critical_section_start() { 7 ggml_critical_section_mutex.lock(); 8 } 9 10 void ggml_critical_section_end(void) { 11 ggml_critical_section_mutex.unlock(); 12 }