Investigate feasability of an OFKernelEventObserver based on WaitForMultipleObjects() #108
Labels
No labels
Arch
AMD64
Arch
m68k
Arch/PowerPC64
Bug
Documentation
Duplicate
Feature
Infeasible
Invalid
Nice to Have
ObjC++
ofarc
ofhttp
OS
AmigaOS
OS
FreeBSD
OS
Linux
OS
macOS
OS
Windows
Out of Scope
Question
Runtime
Security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ObjFW/ObjFW#108
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Having an
OFKernelEventObserverbased on Windows events would allow async operations on sockets and non-sockets at the same time. This would require turning sockets into events usingWSAEventSelect.Since 3rd party subclasses might just provide a file descriptor that is from a socket, there needs to be fallback logic that checks if a Windows event is available for a stream and if not falls back to creating one using
WSAEventSelectfrom the provided file descriptor.