Differences From Artifact [b2488d7024]:
- File src/socket.m — part of check-in [bceb7ed4c9] at 2019-03-08 00:35:48 on branch trunk — Use dot syntax (user: js, size: 14749) [annotate] [blame] [check-ins using]
To Artifact [2f5d16033d]:
- File
src/socket.m
— part of check-in
[5358e9ea6a]
at
2019-08-01 20:14:35
on branch trunk
— Split threading.[hm] into multiple files
This allows the runtime to only link against the parts it needs, without
pulling in unnecessary parts like thread spawning, TLS and conditions. (user: js, size: 14637) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
33 34 35 36 37 38 39 | #import "OFInvalidFormatException.h" #import "OFLockFailedException.h" #import "OFUnlockFailedException.h" #import "socket.h" #import "socket_helpers.h" #ifdef OF_HAVE_THREADS | | > | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | #import "OFInvalidFormatException.h" #import "OFLockFailedException.h" #import "OFUnlockFailedException.h" #import "socket.h" #import "socket_helpers.h" #ifdef OF_HAVE_THREADS # include "mutex.h" #endif #include "once.h" #ifdef OF_NINTENDO_3DS # include <3ds/types.h> # include <3ds/services/soc.h> #endif #ifdef OF_HAVE_THREADS |
︙ | ︙ | |||
85 86 87 88 89 90 91 | initSuccessful = true; } bool of_socket_init() { | < < < < < < < < | 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | initSuccessful = true; } bool of_socket_init() { static of_once_t onceControl = OF_ONCE_INIT; of_once(&onceControl, init); return initSuccessful; } int of_socket_errno() { |
︙ | ︙ |