Replace work queue with Odin core thread pool
This commit is contained in:
parent
a52c0cc2fd
commit
0bf25b991f
4 changed files with 44 additions and 123 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue