We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb032b0 commit 62a23d5Copy full SHA for 62a23d5
ext/io/event/selector/epoll.c
@@ -241,7 +241,7 @@ int IO_Event_Selector_EPoll_Descriptor_update(struct IO_Event_Selector_EPoll *se
241
} else {
242
// The IO has changed, we need to reset the state:
243
epoll_descriptor->registered_events = 0;
244
- epoll_descriptor->io = io;
+ RB_OBJ_WRITE(selector->backend.self, &epoll_descriptor->io, io);
245
}
246
247
if (epoll_descriptor->waiting_events == 0) {
@@ -251,7 +251,7 @@ int IO_Event_Selector_EPoll_Descriptor_update(struct IO_Event_Selector_EPoll *se
251
252
253
254
- epoll_descriptor->io = 0;
+ RB_OBJ_WRITE(selector->backend.self, &epoll_descriptor->io, 0);
255
256
return 0;
257
0 commit comments