aboutsummaryrefslogtreecommitdiff
path: root/std/mutex.zig
AgeCommit message (Collapse)Author
2019-09-25mv std/ lib/Andrew Kelley
that's all this commit does. further commits will fix cli flags and such. see #2221
2019-06-22heap: make one global instance of DirectAllocatorSahnvour
it is now stateless, so the de/init are not necessary anymore
2019-05-26clean up references to posixAndrew Kelley
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-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
2019-02-01fixupsAndrew Kelley
2019-01-11fixed initializer and typosemekoi
2019-01-11removed nullablesemekoi
2019-01-11changed pointer typesemekoi
2019-01-11fixed mutex on windowsemekoi
2019-01-11moved to InitializeCriticalSection to initemekoi
2019-01-11switching back to EnterCriticalSectionemekoi
2019-01-11switching from EnterCriticalSection to TryEnterCriticalSectionemekoi
2019-01-11updated structsemekoi
2019-01-11added mutex for windowsemekoi
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-03better mutex implementationAndrew Kelley
based on Ulrich Drepper's "Futexes are tricky" paper, Mutex, Take 3 also includes tests
2018-10-03std.Mutex: implement blocking mutexes on linuxAndrew Kelley
closes #1463 Thanks to Shawn Landden for the original pull request. This commit is based on that code.
2018-08-01add std.event.RwLock and a few more std changesAndrew Kelley
* add std.event.RwLock and std.event.RwLocked * std.debug.warn does its printing locked * add std.Mutex, however it's currently implemented as a spinlock * rename std.event.Group.cancelAll to std.event.Group.deinit and change the docs and assumptions. * add std.HashMap.clone