mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os.notify: remove the meaningless [noinit] attribute of the notifier (#19075)
This commit is contained in:
parent
07b36d69f3
commit
320057df1c
@ -21,14 +21,12 @@ fn C.EV_SET(voidptr, u32, i16, u16, u32, int, voidptr)
|
||||
|
||||
// KqueueNotifier provides methods that implement FdNotifier using the
|
||||
// kqueue I/O event notification facility (macos, freeBSD, xxxBSD...unix only)
|
||||
[noinit]
|
||||
struct KqueueNotifier {
|
||||
kqueue_fd int
|
||||
}
|
||||
|
||||
// KqueueEvent describes an event that occurred for a file descriptor in
|
||||
// the watch list
|
||||
[noinit]
|
||||
struct KqueueEvent {
|
||||
pub:
|
||||
fd int
|
||||
|
@ -26,14 +26,12 @@ fn C.epoll_wait(int, &C.epoll_event, int, int) int
|
||||
|
||||
// EpollNotifier provides methods that implement FdNotifier using the
|
||||
// epoll I/O event notification facility (linux only)
|
||||
[noinit]
|
||||
struct EpollNotifier {
|
||||
epoll_fd int
|
||||
}
|
||||
|
||||
// EpollEvent describes an event that occurred for a file descriptor in
|
||||
// the watch list
|
||||
[noinit]
|
||||
struct EpollEvent {
|
||||
pub:
|
||||
fd int
|
||||
|
Loading…
Reference in New Issue
Block a user