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
|
// KqueueNotifier provides methods that implement FdNotifier using the
|
||||||
// kqueue I/O event notification facility (macos, freeBSD, xxxBSD...unix only)
|
// kqueue I/O event notification facility (macos, freeBSD, xxxBSD...unix only)
|
||||||
[noinit]
|
|
||||||
struct KqueueNotifier {
|
struct KqueueNotifier {
|
||||||
kqueue_fd int
|
kqueue_fd int
|
||||||
}
|
}
|
||||||
|
|
||||||
// KqueueEvent describes an event that occurred for a file descriptor in
|
// KqueueEvent describes an event that occurred for a file descriptor in
|
||||||
// the watch list
|
// the watch list
|
||||||
[noinit]
|
|
||||||
struct KqueueEvent {
|
struct KqueueEvent {
|
||||||
pub:
|
pub:
|
||||||
fd int
|
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
|
// EpollNotifier provides methods that implement FdNotifier using the
|
||||||
// epoll I/O event notification facility (linux only)
|
// epoll I/O event notification facility (linux only)
|
||||||
[noinit]
|
|
||||||
struct EpollNotifier {
|
struct EpollNotifier {
|
||||||
epoll_fd int
|
epoll_fd int
|
||||||
}
|
}
|
||||||
|
|
||||||
// EpollEvent describes an event that occurred for a file descriptor in
|
// EpollEvent describes an event that occurred for a file descriptor in
|
||||||
// the watch list
|
// the watch list
|
||||||
[noinit]
|
|
||||||
struct EpollEvent {
|
struct EpollEvent {
|
||||||
pub:
|
pub:
|
||||||
fd int
|
fd int
|
||||||
|
Loading…
Reference in New Issue
Block a user