Andrew Kelley
a9667b5a85
organize std lib concurrency primitives and add RwLock
...
* move concurrency primitives that always operate on kernel threads to
the std.Thread namespace
* remove std.SpinLock. Nobody should use this in a non-freestanding
environment; the other primitives are always preferable. In
freestanding, it will be necessary to put custom spin logic in there,
so there are no use cases for a std lib version.
* move some std lib files to the top level fields convention
* add std.Thread.spinLoopHint
* add std.Thread.Condition
* add std.Thread.Semaphore
* new implementation of std.Thread.Mutex for Windows and non-pthreads Linux
* add std.Thread.RwLock
Implementations provided by @kprotty
2021-01-14 20:41:37 -07:00
..
2021-01-14 20:41:37 -07:00
2021-01-07 23:48:58 -08:00
2021-01-14 20:41:37 -07:00
2020-12-31 15:45:24 -08:00
2021-01-07 23:48:58 -08:00
2021-01-14 20:41:37 -07:00
2020-12-31 15:45:24 -08:00
2021-01-14 20:41:37 -07:00
2021-01-11 13:58:06 -07:00
2021-01-14 20:41:37 -07:00
2021-01-11 16:51:56 -07:00
2021-01-07 23:48:58 -08:00
2021-01-06 00:55:51 +11:00
2020-12-31 15:45:24 -08:00
2021-01-02 17:12:57 -07:00
2021-01-11 21:43:15 +01:00
2021-01-14 20:41:37 -07:00
2021-01-02 12:21:19 -07:00
2021-01-12 05:39:46 +00:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-01-14 20:41:37 -07:00
2020-12-31 15:45:24 -08:00
2021-01-07 23:48:58 -08:00
2020-12-31 15:45:24 -08:00
2021-01-12 18:13:29 -08:00
2021-01-06 00:55:51 +11:00
2021-01-08 16:54:56 -05:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-01-11 22:07:21 -07:00
2021-01-02 17:12:57 -07:00
2021-01-14 20:41:37 -07:00
2021-01-07 23:48:58 -08:00
2021-01-07 23:48:58 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-01-04 15:57:54 -07:00
2020-12-31 15:45:24 -08:00
2021-01-14 20:41:37 -07:00
2020-12-31 15:45:24 -08:00
2021-01-07 23:48:58 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-01-08 16:54:56 -05:00
2021-01-12 18:13:29 -08:00
2021-01-06 00:55:51 +11:00
2021-01-07 23:51:53 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-01-11 16:51:56 -07:00
2021-01-08 16:54:56 -05:00
2020-12-31 15:45:24 -08:00
2021-01-04 14:03:21 -08:00
2020-12-31 15:45:24 -08:00
2021-01-08 23:41:51 +01:00
2021-01-10 19:04:10 -07:00
2021-01-11 17:48:19 -07:00
2021-01-01 15:48:46 -07:00
2021-01-11 21:43:15 +01:00
2021-01-14 20:41:37 -07:00
2021-01-12 18:11:58 -08:00
2021-01-02 01:10:47 +11:00
2021-01-08 16:54:56 -05:00
2020-12-31 15:45:24 -08:00
2021-01-02 17:12:57 -07:00
2021-01-14 20:41:37 -07:00
2020-12-31 15:45:24 -08:00
2021-01-12 18:13:29 -08:00
2021-01-06 15:53:53 -08:00
2020-12-31 15:45:24 -08:00
2021-01-02 17:12:57 -07:00
2021-01-14 20:41:37 -07:00
2021-01-11 19:54:56 -05:00
2021-01-12 18:13:29 -08:00
2021-01-14 20:41:37 -07:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2020-12-31 15:45:24 -08:00
2021-01-07 23:49:22 -08:00