diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-20 12:24:58 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-20 12:28:30 -0700 |
| commit | 61850f88835bfc71682f9c57c28c7e64080f1389 (patch) | |
| tree | fea6cc389f253380903695015f7638ca9d94db9d /src/Compilation.zig | |
| parent | 85c2ffc9ba3153fbc5d295b2bc698b5bf0344d0e (diff) | |
| download | zig-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
