Differences From Artifact [370fb61e6e]:
- File src/OFKernelEventObserver.m — part of check-in [c9bf16250c] at 2024-07-29 22:19:08 on branch trunk — Fix missing underscore in last commit (user: js, size: 6653) [annotate] [blame] [check-ins using] [more...]
To Artifact [6e35982883]:
- File
src/OFKernelEventObserver.m
— part of check-in
[7460d2ccd8]
at
2024-08-17 17:30:51
on branch trunk
— Delay socket initialization as long as possible
On game consoles, initializing sockets takes a significant amount of
time. When not delaying socket initializing, that time is spent during
startup even when the application might never use sockets.Worse yet, on Amiga, sockets might not be available at all and the
application will fail to start up, even when the application might never
use sockets. (user: js, size: 6584) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
57 58 59 60 61 62 63 | @implementation OFKernelEventObserver @synthesize delegate = _delegate; #ifdef OF_AMIGAOS @synthesize execSignalMask = _execSignalMask; #endif | < < < < < < < < < < | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | @implementation OFKernelEventObserver @synthesize delegate = _delegate; #ifdef OF_AMIGAOS @synthesize execSignalMask = _execSignalMask; #endif + (instancetype)observer { return [[[self alloc] init] autorelease]; } + (instancetype)alloc { |
︙ | ︙ | |||
100 101 102 103 104 105 106 107 108 109 110 111 112 113 | @try { #if !defined(OF_HAVE_PIPE) && !defined(OF_WII) && !defined(OF_AMIGAOS) && \ !defined(OF_NINTENDO_3DS) socklen_t cancelAddrLen; #endif _readObjects = [[OFMutableArray alloc] init]; _writeObjects = [[OFMutableArray alloc] init]; #if defined(OF_HAVE_PIPE) && !defined(OF_AMIGAOS) if (pipe(_cancelFD)) @throw [OFInitializationFailedException exceptionWithClass: self.class]; | > > > > | 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | @try { #if !defined(OF_HAVE_PIPE) && !defined(OF_WII) && !defined(OF_AMIGAOS) && \ !defined(OF_NINTENDO_3DS) socklen_t cancelAddrLen; #endif if (!_OFSocketInit()) @throw [OFInitializationFailedException exceptionWithClass: self.class]; _readObjects = [[OFMutableArray alloc] init]; _writeObjects = [[OFMutableArray alloc] init]; #if defined(OF_HAVE_PIPE) && !defined(OF_AMIGAOS) if (pipe(_cancelFD)) @throw [OFInitializationFailedException exceptionWithClass: self.class]; |
︙ | ︙ |