aboutsummaryrefslogtreecommitdiff
path: root/std/atomic/stack.zig
AgeCommit message (Collapse)Author
2019-03-02rename std lib files to new conventionAndrew Kelley
2019-02-08std.debug.assert: remove special case for test buildsAndrew Kelley
Previously, std.debug.assert would `@panic` in test builds, if the assertion failed. Now, it's always `unreachable`. This makes release mode test builds more accurately test the actual code that will be run. However this requires tests to call `std.testing.expect` rather than `std.debug.assert` to make sure output is correct. Here is the explanation of when to use either one, copied from the assert doc comments: Inside a test block, it is best to use the `std.testing` module rather than assert, because assert may not detect a test failure in ReleaseFast and ReleaseSafe mode. Outside of a test block, assert is the correct function to use. closes #1304
2019-02-03`std.mem.Allocator.create` replaced with better APIAndrew Kelley
`std.mem.Allocator.createOne` is renamed to `std.mem.Allocator.create`. The problem with the previous API is that even after copy elision, the initalization value passed as a parameter would always be a copy. With the new API, once copy elision is done, initialization functions can directly initialize allocated memory in place. Related: * #1872 * #1873
2019-02-01introduce --single-threaded build optionAndrew Kelley
closes #1764 This adds another boolean to the test matrix; hopefully it does not inflate the time too much. std.event.Loop does not work with this option yet. See #1908
2018-11-13New Zig formal grammar (#1685)Jimmi Holst Christensen
Reverted #1628 and changed the grammar+parser of the language to not allow certain expr where types are expected
2018-10-15Solve the return type ambiguity (#1628)Jimmi Holst Christensen
Changed container and initializer syntax * <container> { ... } -> <container> . { ... } * <exrp> { ... } -> <expr> . { ...}
2018-10-11Improve time.sleep apiMarc Tiehuis
2018-09-13remove `this`. add `@This()`.Andrew Kelley
closes #1283
2018-07-11std.atomic: use spinlocksAndrew Kelley
the lock-free data structures all had ABA problems and std.atomic.Stack had a possibility to load an unmapped memory address.
2018-06-20remove std.mem.Allocator.construct and other fixupsAndrew Kelley
2018-06-20zig fmtAndrew Kelley
2018-06-21std: update stdlib to match updated allocator create signature; ref #733kristopher tate
2018-06-13fix race condition bug in test harness of std.atomicAndrew Kelley
2018-06-12better debugging for CI failures of std.atomicAndrew Kelley
2018-06-10breaking syntax change: orelse keyword instead of ?? (#1096)Andrew Kelley
use the `zig-fmt-optional-default` branch to have zig fmt automatically do the changes. closes #1023
2018-05-31use * for pointer type instead of &Andrew Kelley
See #770 To help automatically translate code, see the zig-fmt-pointer-reform-2 branch. This will convert all & into *. Due to the syntax ambiguity (which is why we are making this change), even address-of & will turn into *, so you'll have to manually fix thes instances. You will be guaranteed to get compile errors for them - expected 'type', found 'foo'
2018-05-10partial conversion to post-fix pointer deref using zig fmtAndrew Kelley
2018-05-02fix compiler-rt tests accidentally running std testsAndrew Kelley
also reduce the aggressiveness of std.atomic.stack and std.atomic.queue fuzz testing. appveyor has 1 core and 10,000 iterations is too much for 6 threads to thrash over
2018-05-02std.atomic - use AtomicOrder.SeqCst for everythingAndrew Kelley
also use less memory for the tests
2018-04-29support kernel threads for windowsAndrew Kelley
* remove std.os.spawnThreadAllocator - windows does not support an explicit stack, so using an allocator for a thread stack space does not work. * std.os.spawnThread - instead of accepting a stack argument, the implementation will directly allocate using OS-specific APIs.
2018-04-29enable atomic queue and stack tests for macosAndrew Kelley
2018-04-28disable atomic stack and queue tests for non-linuxAndrew Kelley
2018-04-28add tests for std.atomic Queue and StackAndrew Kelley
2018-04-28add fuzz tests for std.atomic.StackAndrew Kelley
2018-04-28add std.atomic.Stack and std.atomic.QueueAndrew Kelley