Mercurial
diff .claude/skills/zenbu-seobeo-networking/SKILL.md @ 250:745fd127b2a1
[seobeo] Add bounded worker interface
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 04 Aug 2026 06:23:37 -0700 |
| parents | b8b6e726964a |
| children | 609d3c6aff4e |
line wrap: on
line diff
--- a/.claude/skills/zenbu-seobeo-networking/SKILL.md Tue Aug 04 04:16:45 2026 -0700 +++ b/.claude/skills/zenbu-seobeo-networking/SKILL.md Tue Aug 04 06:23:37 2026 -0700 @@ -64,6 +64,19 @@ Seobeo_WebSocket_Server_Register("/chat", Chat_Handler, NULL); ``` +Background work: + +```c +Seobeo_Worker_Pool *pool = Seobeo_Worker_Pool_Create(2, 16); +Seobeo_Worker_Pool_Submit(pool, Process_File, context, free); +Seobeo_Worker_Pool_Shutdown(pool, TRUE); +Seobeo_Worker_Pool_Destroy(pool); +``` + +Use `Seobeo_Thread_Start` + `Seobeo_Thread_Join` for one joinable task, or +`Seobeo_Thread_Start_Detached` for fire-and-forget work. Prefer a bounded pool +for request-triggered FFmpeg, upload, or other expensive jobs. + ## Build targets Choose the smallest library variant that matches the feature: @@ -75,6 +88,7 @@ - `//seobeo:seobeo_tcp_client_ws`: HTTP client with WebSocket. - `//seobeo:seobeo`: full combined library. - `//seobeo:seobeo_debug`: full library with debug logging. +- `//seobeo:seobeo_worker`: standalone thread/worker-pool API. ## Tests