comparison seobeo/os/s_macos_edge.c @ 18:fa2b8af609d9

[Seobeo] Fixed a bug with pathing. Support SSL.
author June Park <parkjune1995@gmail.com>
date Mon, 06 Oct 2025 08:21:34 -0700
parents d97ec3ded2ae
children 875bb6e10db7
comparison
equal deleted inserted replaced
17:d97ec3ded2ae 18:fa2b8af609d9
58 pthread_attr_setstacksize(&attr, 100 * 1024 * 1024); // 100 MB 58 pthread_attr_setstacksize(&attr, 100 * 1024 * 1024); // 100 MB
59 59
60 pthread_t threads[thread_count]; 60 pthread_t threads[thread_count];
61 for (int i = 0; i < thread_count; i++) 61 for (int i = 0; i < thread_count; i++)
62 { 62 {
63 WorkerArgs args = { p_server_handle, p_html_cache, kq }; 63 WorkerArgs *args = malloc(sizeof(WorkerArgs));
64 pthread_create(&threads[i], NULL, 64 *args = (WorkerArgs){ p_server_handle, p_html_cache, kq };
65 Seobeo_Web_Edge_Worker, &args); 65
66 pthread_create(&threads[i], NULL, Seobeo_Web_Edge_Worker, args);
66 } 67 }
67 for (int i = 0; i < thread_count; i++) 68 for (int i = 0; i < thread_count; i++)
68 { 69 {
69 pthread_join(threads[i], NULL); 70 pthread_join(threads[i], NULL);
70 } 71 }