Mercurial
comparison seobeo/os/s_macos_edge.c @ 17:d97ec3ded2ae
[Seobeo] Few changes...
- Fixed seobeo edge for macos
- Updated so that socket creation can be used for both client and server
- Started on a cutelient library for making connection to the server.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Sat, 04 Oct 2025 07:53:12 -0700 |
| parents | fb2cff495a60 |
| children | fa2b8af609d9 |
comparison
equal
deleted
inserted
replaced
| 16:fb2cff495a60 | 17:d97ec3ded2ae |
|---|---|
| 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 = malloc(sizeof(WorkerArgs)); | 63 WorkerArgs args = { p_server_handle, p_html_cache, kq }; |
| 64 *args = (WorkerArgs){ p_server_handle, p_html_cache, kq }; | |
| 65 pthread_create(&threads[i], NULL, | 64 pthread_create(&threads[i], NULL, |
| 66 Seobeo_Web_Edge_Worker, args); | 65 Seobeo_Web_Edge_Worker, &args); |
| 67 } | 66 } |
| 68 for (int i = 0; i < thread_count; i++) | 67 for (int i = 0; i < thread_count; i++) |
| 69 { | 68 { |
| 70 pthread_join(threads[i], NULL); | 69 pthread_join(threads[i], NULL); |
| 71 } | 70 } |