nbio: reorder Operation fields to be more logical

This commit is contained in:
Laytan Laats
2026-01-13 19:38:27 +01:00
parent 4ae02aaacf
commit 8f5702e69e

View File

@@ -42,16 +42,17 @@ MAX_USER_ARGUMENTS :: #config(NBIO_MAX_USER_ARGUMENTS, 4)
#assert(MAX_USER_ARGUMENTS >= 4)
Operation :: struct {
cb: Callback,
user_data: [MAX_USER_ARGUMENTS + 1]rawptr,
detached: bool,
type: Operation_Type,
using specifics: Specifics,
_impl: _Operation `fmt:"-"`,
using _: struct #raw_union {
_pool_link: ^Operation,
l: ^Event_Loop,
},
cb: Callback,
using _specifics: Specifics,
user_data: [MAX_USER_ARGUMENTS + 1]rawptr,
type: Operation_Type,
detached: bool,
}
Specifics :: struct #raw_union {