aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-20 12:24:58 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-05-20 12:28:30 -0700
commit61850f88835bfc71682f9c57c28c7e64080f1389 (patch)
treefea6cc389f253380903695015f7638ca9d94db9d /src/Compilation.zig
parent85c2ffc9ba3153fbc5d295b2bc698b5bf0344d0e (diff)
downloadzig-61850f88835bfc71682f9c57c28c7e64080f1389.tar.gz
zig-61850f88835bfc71682f9c57c28c7e64080f1389.zip
std: Windows: WSASocketW ensures WSAStartup
When WSASocketW gets WSANOTINITIALISED, now it will lock a mutex to safely call WSAStartup and then try again one time. This implementation: * Does not use recursion * Contains a detailed doc comment explaining why things are how they are * Is careful about which errors are surfaced in the respective error sets. `std.os.socket` intentionally does not have "not initialised" as one of the possible errors.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions