Andrew Kelley
fbbcf2f30d
Merge branch 'adaptive_lock' of https://github.com/kprotty/zig into kprotty-adaptive_lock
2019-11-08 01:21:22 -05:00
kprotty
e2189b6e5d
cleanup getEventHandle
2019-11-07 19:37:53 -06:00
kprotty
43900011f7
handle NtCreateKeyedEvent failure by spinning to ensure correctness
2019-11-07 18:56:43 -06:00
kprotty
fe8c1cf804
missing `os` declaration
2019-11-07 17:14:08 -06:00
kprotty
bb4abfdc78
Use `system` instead of `builtin.link_libc`
2019-11-07 16:36:33 -06:00
kprotty
12e68cbeb6
pthread_sched_yield -> sched_yield
2019-11-07 16:33:25 -06:00
kprotty
f41e58d015
fix SpinLock.yield for pull/3626
2019-11-07 15:51:20 -06:00
kprotty
b5d84635f2
remove WaitOnAddress backend in std.ThreadParker
2019-11-07 15:46:57 -06:00
kprotty
b535e86cc0
move SpinLock definitions around
2019-11-07 15:32:20 -06:00
Vexu
459a364a33
allow Group to optionally manage function frames' memory
2019-11-07 13:26:49 -05:00
Vexu
3858a526e3
make callMainAsync async
2019-11-07 13:18:47 -05:00
kprotty
92dac89d01
lock the mutex on pthread_cond_signal()
2019-11-07 09:23:02 -06:00
LemonBoy
cf6fb89ced
Add small tokenizer test case for #3468
2019-11-07 02:46:10 -05:00
Andrew Kelley
c7fd414dab
Merge pull request #3618 from nrdmn/uefi
...
UEFI improvements
2019-11-06 23:19:46 -05:00
Nick Erdmann
78b54d9c96
std/os/uefi: protocol handling improvements
2019-11-07 03:06:06 +01:00
Nick Erdmann
cef51eaffb
std/os/uefi: snp, mnp, ip6, and udp6 support
2019-11-07 02:53:53 +01:00
Nick Erdmann
f4767186dd
std/os/uefi: loading images
2019-11-07 02:53:53 +01:00
Andrew Kelley
6ee3cabe5c
allow type coercion from *[0]T to E![]const T
...
This is an unambiguous, safe cast.
2019-11-06 20:44:15 -05:00
kprotty
7045f1e875
skip std.ThreadParker test on single-threaded
2019-11-06 17:23:44 -06:00
shiimizu
7277670843
Add error when too few arguments are provided to std.fmt
2019-11-06 18:22:33 -05:00
Sebastian Keller
f81f36e2ff
std.json.Value: added dumpStream(), utilize WriteStream for dump()
2019-11-06 18:21:52 -05:00
Vexu
4530adbd33
use global event loop in std.event types
2019-11-06 15:17:40 -05:00
Andrew Kelley
913f7d0450
improve the start code for evented I/O
...
When evented I/O is being used, prevent event loop from terminating
at least until main() has returned.
2019-11-06 15:08:29 -05:00
Brendan Hansknecht
c1e8fdf812
add token for parsing pointer dereference
2019-11-06 14:03:21 -05:00
Sebastian Keller
dd4e9fb16b
Fixed a leak in the json parser.
...
parseString() created a copy of the string using the wrong allocator.
Instead of using the ArenaAllocator, it was using the allocator passed
into Parser.init(). This lead to a leak as the copied string was not
freed when the ArenaAllocator was deinited.
2019-11-06 14:00:36 -05:00
kprotty
4dbfc48ab3
Disable asm("yield") for arm in SpinLock.yieldCpu() because of CI
2019-11-05 16:16:03 -06:00
kprotty
c9db420a09
Adaptive Mutex:
...
- uses std.ThreadParker
- supports static initialization (deprecates StaticallyInitializedMutex)
2019-11-05 16:14:43 -06:00
kprotty
465ebf494d
ThreadParker implementation
2019-11-05 15:58:58 -06:00
kprotty
14209cf615
make SpinLock.Backoff pub
2019-11-05 13:43:17 -06:00
Andrew Kelley
9bc4f8ea77
zig build: addIncludeDir does -I instead of -isystem
2019-11-05 14:32:17 -05:00
Vexu
a26e9fa723
add special formatting for ipv4-mapped ipv6 addresses
2019-11-05 12:05:34 -05:00
Andrew Kelley
4e9ab0306a
Merge pull request #3587 from LemonBoy/fix-things
...
Bunch'o'fixes
2019-11-05 11:44:07 -05:00
Shawn Landden
1c22cb5e51
fix noreturn function that may return.
...
we do not want undefined behavior here in --release-fast
and --release-small modes
2019-11-05 11:38:32 -05:00
Shawn Landden
55685ae780
remove duplicate isNan implementation
2019-11-05 11:34:33 -05:00
lukechampine
3d907b2943
crypto: Add support for AES-CTR
2019-11-05 11:33:11 -05:00
kprotty
84e370d0b2
Move hybrid yielding into its own struct
2019-11-05 09:31:29 -06:00
kprotty
0d4f4aad9e
adaptive SpinLock
2019-11-05 08:16:08 -06:00
daurnimator
1657bead46
std: Add fifo useful for buffers
2019-11-04 17:44:01 -05:00
data-man
42ccdc2765
Replace AES variables to constants
2019-11-04 17:43:14 -05:00
Andrew Kelley
ce70a9be24
Merge pull request #3589 from Vexu/ipv6-improvements
...
Ipv6 improvements
2019-11-04 15:22:14 -05:00
Andrew Kelley
6c17282062
std.os.read can fail with ConnectionResetByPeer
2019-11-04 14:40:30 -05:00
Andrew Kelley
aaf50970a8
Merge pull request #3574 from lukechampine/aes
...
crypto: Add AES implementation
2019-11-04 14:39:40 -05:00
LemonBoy
c8b6e55299
Make the `leb` module available to non-std code
2019-11-04 20:33:40 +01:00
Luke Champine
eb95afbc66
remove speculative AES TODOs
2019-11-04 13:59:26 -05:00
Andrew Kelley
5db77e3c66
Merge pull request #3588 from daurnimator/tiny-std-fixes
...
Tiny std fixes
2019-11-04 13:25:37 -05:00
Brendan Hansknecht
52207f22de
Add karatsuba to big ints
2019-11-04 13:20:03 -05:00
Vexu
6e786b60d4
support ipv4-mapped ipv6 addresses
2019-11-04 19:54:36 +02:00
Vexu
32ac1b5927
improve ipv6 parsing and formatting
2019-11-04 19:00:58 +02:00
daurnimator
c8463ce9b0
std: Add definitions for (deprecated) futimes and utimes C functions
2019-11-05 02:19:25 +11:00
daurnimator
6e635c6406
std: close is OSX specific
2019-11-05 02:16:30 +11:00