diff seobeo/os/s_linux_edge.c @ 111:48f260576059

[PostDog] Rewriting it from scratch as it is unreadable for me.
author June Park <parkjune1995@gmail.com>
date Sun, 04 Jan 2026 06:39:16 -0800
parents 75de5903355c
children a8976a008a9d
line wrap: on
line diff
--- a/seobeo/os/s_linux_edge.c	Sat Jan 03 21:16:17 2026 -0800
+++ b/seobeo/os/s_linux_edge.c	Sun Jan 04 06:39:16 2026 -0800
@@ -77,7 +77,8 @@
   pthread_attr_setstacksize(&attr, 5 * 1024 * 1024); // 5 MB
 
   pthread_t threads[thread_count];
-  for (int i = 0; i < thread_count; i++) {
+  for (int i = 0; i < thread_count; i++)
+  {
     WorkerArgs *args = malloc(sizeof(WorkerArgs));
     *args = (WorkerArgs){ p_server_handle, p_html_cache };
 
@@ -85,9 +86,8 @@
   }
 
   // Join threads instead of detaching for proper cleanup
-  for (int i = 0; i < thread_count; i++) {
+  for (int i = 0; i < thread_count; i++)
     pthread_join(threads[i], NULL);
-  }
 
   pthread_attr_destroy(&attr);
 }