summaryrefslogtreecommitdiff
path: root/src/engine/thread.c
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-08-15 13:55:35 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-08-15 13:55:35 +0530
commit378cc549ab442c845ac9d62cc8cef6977073fe4d (patch)
tree83b4575d7ad80cdd4f694f596f5655e164e0478f /src/engine/thread.c
parent7d36403836511ab0745791ce98498cf5112633c1 (diff)
md files
Diffstat (limited to 'src/engine/thread.c')
-rw-r--r--src/engine/thread.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/engine/thread.c b/src/engine/thread.c
index 017e9b6..25e583e 100644
--- a/src/engine/thread.c
+++ b/src/engine/thread.c
@@ -1,8 +1,8 @@
#include "engine/threads.h"
#include <stdio.h>
-void *engine_thread(void *_args) {
- struct thread_args *args = (struct thread_args*)_args;
+void *child_thread(void *_args) {
+ struct child_thread_args *args = (struct child_thread_args*)_args;
args->stop = 0;
int depth = 0;
@@ -32,3 +32,11 @@ void *engine_thread(void *_args) {
args->stop = 2;
}
+// DTS requires a root thread which is initialize the search tree, and the
+// others who use that search tree. it's as if root_thread is the owner of the
+// tree
+void *root_thread(void *_args) {
+ struct root_thread_args *args = (struct root_thread_args*)_args;
+ args->stop = 0;
+}
+