Replace work queue with Odin core thread pool

This commit is contained in:
Hugo Mårdbrink 2025-11-13 11:18:13 +01:00
parent a52c0cc2fd
commit 0bf25b991f
4 changed files with 44 additions and 123 deletions

View file

@ -1,4 +1,3 @@
#+private package
package http
import "core:bufio"
@ -56,7 +55,7 @@ status_text :: proc(status: Status) -> string {
unmarshall_request_line :: proc(
request: ^Request,
reader: ^bufio.Reader,
allocator := context.temp_allocator
allocator := context.temp_allocator,
) -> RequestError {
request_line, io_err := bufio.reader_read_slice(reader, '\n')
if io_err != nil do return .InvalidRequestLine