aboutsummaryrefslogtreecommitdiffstats
path: root/libar2simplified_hash.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-15 11:18:15 +0100
committerMattias Andrée <maandree@kth.se>2022-02-15 11:18:15 +0100
commit48db2850b5866f6465fb37011e15641ddf2133fa (patch)
treee20d7f7e3eb9ad800cf79171995c52f1f50dc4bb /libar2simplified_hash.c
parentFix doc and adjust text width (diff)
downloadlibar2simplified-48db2850b5866f6465fb37011e15641ddf2133fa.tar.gz
libar2simplified-48db2850b5866f6465fb37011e15641ddf2133fa.tar.bz2
libar2simplified-48db2850b5866f6465fb37011e15641ddf2133fa.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libar2simplified_hash.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/libar2simplified_hash.c b/libar2simplified_hash.c
index 8e4bd85..b21ef5b 100644
--- a/libar2simplified_hash.c
+++ b/libar2simplified_hash.c
@@ -260,44 +260,6 @@ init_thread_pool(size_t desired, size_t *createdp, struct libar2_context *ctx)
}
-/*
- * INIT_THREAD_POOL
- * slave semaphores: 0
- * master semaphore: 0
- * all ressting
- *
- * THREAD_LOOP
- * acquire slave
- * run function(input)
- * with lock on master {
- * mark as resting
- * release master
- * }
- *
- * RUN_THREAD
- * with lock on master {
- * mark as busy
- * }
- * set function & input
- * release slave
- *
- * AWAIT_THREADS
- * for (ret = 0; ret < require;) {
- * acquire master
- * with lock on master {
- * mark one resting as joined
- * ret += 1
- * }
- * }
- * while (try-acquire master) {
- * with lock on master {
- * mark one resting as joined
- * ret += 1
- * }
- * }
- * return ret
- */
-
#if defined(__GNUC__)
__attribute__((__const__))
#endif