Mercurial
comparison seobeo/seobeo_internal.h @ 62:ea9ef388ab97
[Seobeo] Fixed issues with epoll or kqeue in different threads. Initizlied the event looop inside of the thread itself.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Tue, 23 Dec 2025 11:48:11 -0800 |
| parents | 84672efec192 |
| children | a30944e5719e |
comparison
equal
deleted
inserted
replaced
| 61:9df5587cf23b | 62:ea9ef388ab97 |
|---|---|
| 40 } Sebeo_Handle, *Seobeo_PHandle; | 40 } Sebeo_Handle, *Seobeo_PHandle; |
| 41 | 41 |
| 42 typedef struct { | 42 typedef struct { |
| 43 Seobeo_PHandle srv; | 43 Seobeo_PHandle srv; |
| 44 Dowa_PHashMap cache; | 44 Dowa_PHashMap cache; |
| 45 int evfd; // epoll‐fd or kqueue‐fd | |
| 46 } WorkerArgs; | 45 } WorkerArgs; |
| 47 | 46 |
| 48 typedef enum { | 47 typedef enum { |
| 49 SEOBEO_MODE_FORK, | 48 SEOBEO_MODE_FORK, |
| 50 SEOBEO_MODE_EDGE, | 49 SEOBEO_MODE_EDGE, |