Spaces:
Running
Running
ggml : add void to argument-less functions
Browse files
ggml.c
CHANGED
|
@@ -1237,7 +1237,7 @@ static struct ggml_state g_state;
|
|
| 1237 |
static atomic_int g_state_barrier = 0;
|
| 1238 |
|
| 1239 |
// barrier via spin lock
|
| 1240 |
-
inline static void ggml_critical_section_start() {
|
| 1241 |
int processing = atomic_fetch_add(&g_state_barrier, 1);
|
| 1242 |
|
| 1243 |
while (processing > 0) {
|
|
@@ -1250,7 +1250,7 @@ inline static void ggml_critical_section_start() {
|
|
| 1250 |
|
| 1251 |
// TODO: make this somehow automatically executed
|
| 1252 |
// some sort of "sentry" mechanism
|
| 1253 |
-
inline static void ggml_critical_section_end() {
|
| 1254 |
atomic_fetch_sub(&g_state_barrier, 1);
|
| 1255 |
}
|
| 1256 |
|
|
|
|
| 1237 |
static atomic_int g_state_barrier = 0;
|
| 1238 |
|
| 1239 |
// barrier via spin lock
|
| 1240 |
+
inline static void ggml_critical_section_start(void) {
|
| 1241 |
int processing = atomic_fetch_add(&g_state_barrier, 1);
|
| 1242 |
|
| 1243 |
while (processing > 0) {
|
|
|
|
| 1250 |
|
| 1251 |
// TODO: make this somehow automatically executed
|
| 1252 |
// some sort of "sentry" mechanism
|
| 1253 |
+
inline static void ggml_critical_section_end(void) {
|
| 1254 |
atomic_fetch_sub(&g_state_barrier, 1);
|
| 1255 |
}
|
| 1256 |
|