Mercurial
comparison seobeo/os/s_linux_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 |
|---|---|
| 50 pthread_attr_setstacksize(&attr, 100 * 1024 * 1024); // 100 MB | 50 pthread_attr_setstacksize(&attr, 100 * 1024 * 1024); // 100 MB |
| 51 | 51 |
| 52 pthread_t threads[thread_count]; | 52 pthread_t threads[thread_count]; |
| 53 for (int i = 0; i < thread_count; i++) | 53 for (int i = 0; i < thread_count; i++) |
| 54 { | 54 { |
| 55 WorkerArgs args = { p_server_handle, p_html_cache, epfd }; | 55 WorkerArgs *args = malloc(sizeof(WorkerArgs)); |
| 56 pthread_create(&threads[i], NULL, | 56 *args = (WorkerArgs){ p_server_handle, p_html_cache, epfd }; |
| 57 Seobeo_Web_Edge_Worker, &args); | 57 |
| 58 pthread_create(&threads[i], NULL, Seobeo_Web_Edge_Worker, args); | |
| 58 } | 59 } |
| 59 for (int i = 0; i < thread_count; i++) | 60 for (int i = 0; i < thread_count; i++) |
| 60 { | 61 { |
| 61 pthread_join(threads[i], NULL); | 62 pthread_join(threads[i], NULL); |
| 62 } | 63 } |