| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | thread: fix aligned loading of unaligned addresses | Laytan Laats | 2026-01-11 | 1 | -21/+24 |
| | | |||||
| * | Further overhaul of package line comments. | Jeroen van Rijn | 2025-10-09 | 1 | -1/+1 |
| | | |||||
| * | Add doc line to `core:thread` | gingerBill | 2025-10-09 | 1 | -0/+1 |
| | | |||||
| * | Expand `self_cleanup` documentation. | Jeroen van Rijn | 2025-06-24 | 1 | -12/+24 |
| | | |||||
| * | Comment | Jeroen van Rijn | 2025-06-12 | 1 | -1/+2 |
| | | |||||
| * | Early out and propagate `nil` in `create*` | Jeroen van Rijn | 2025-04-17 | 1 | -13/+25 |
| | | | | | | If allocation of a `^Thread` failed, `create*` now properly return `nil`, so you can assert on that instead of calling `thread.destroy` on a null pointer, say. | ||||
| * | Fix #5049 | Jeroen van Rijn | 2025-04-17 | 1 | -2/+4 |
| | | | | | Keep in mind that `thread.create` needs an allocator to be set, as it returns `^Thread`. | ||||
| * | Use more atomic handling of thread flags | Feoramund | 2024-09-09 | 1 | -6/+6 |
| | | | | | This can prevent a data race on Linux with `Self_Cleanup`. | ||||
| * | [thread]: Document all functions in core:thread | flysand7 | 2024-07-21 | 1 | -39/+242 |
| | | |||||
| * | wasi: make the demo run on wasi and run it in CI | Laytan Laats | 2024-06-29 | 1 | -1/+5 |
| | | |||||
| * | Add `#no_broadcast` procedure parameter to disallow automatic array ↵ | gingerBill | 2024-03-21 | 1 | -1/+1 |
| | | | | | programming broadcasting on procedure arguments | ||||
| * | Replace `core:*` to `base:*` where appropriate | gingerBill | 2024-01-28 | 1 | -2/+2 |
| | | |||||
| * | Allow larger thread poly data | Laytan Laats | 2023-11-15 | 1 | -38/+55 |
| | | | | | | | | | The poly data currently has the restriction of being less than a pointer's size, but there is much more space in the `Thread.user_args` array which can be utilized, this commit allows you to pass types that are larger than pointer length as long as the total size of the poly data is less than that of the `Thread.user_args`. | ||||
| * | [core]: Remove `do` keyword from the core library | flysand7 | 2023-11-11 | 1 | -6/+18 |
| | | |||||
| * | [core:thread] Seeing if this fixes network tests | hikari | 2023-06-07 | 1 | -9/+14 |
| | | |||||
| * | [core:thread] Added `self_cleanup` flag to properly auto-clean threads | hikari | 2023-06-07 | 1 | -99/+27 |
| | | |||||
| * | [thread] Refactor handling of 'init_context' + add doc comments for it | Tetralux | 2023-06-03 | 1 | -0/+63 |
| | | |||||
| * | Fix join_multiple typo | Thimilius | 2022-05-11 | 1 | -1/+1 |
| | | |||||
| * | Add `id` to `thread.Thread` | gingerBill | 2021-10-24 | 1 | -0/+1 |
| | | |||||
| * | Add `thread.create_and_start_with_*` procedures | gingerBill | 2021-10-11 | 1 | -0/+107 |
| | | |||||
| * | Remove unneeded semicolons from the core library | gingerBill | 2021-08-31 | 1 | -1/+1 |
| | | |||||
| * | Remove unneeded semicolons from the core library | gingerBill | 2021-08-31 | 1 | -93/+93 |
| | | |||||
| * | Enforce `core:builtin` and `core:intrinsics` for imports | gingerBill | 2021-08-21 | 1 | -1/+1 |
| | | |||||
| * | Default to pthreads in sync2 for *nix | gingerBill | 2021-04-13 | 1 | -1/+0 |
| | | |||||
| * | Remove thread stuff from sync2; Cleanup package thread | gingerBill | 2021-04-11 | 1 | -29/+40 |
| | | |||||
| * | Fix typo | gingerBill | 2020-11-30 | 1 | -3/+3 |
| | | |||||
| * | Fix `thread.run_with_poly_data*` | gingerBill | 2020-11-30 | 1 | -28/+42 |
| | | |||||
| * | Fix sync.Channel code; add `thread.run_with_poly_data` and ↵ | gingerBill | 2020-11-10 | 1 | -7/+93 |
| | | | | | `run_with_poly_data(2|3|4)` procedures | ||||
| * | Update package sync | gingerBill | 2020-08-02 | 1 | -1/+1 |
| | | |||||
| * | Add sync.Once | gingerBill | 2020-07-14 | 1 | -0/+30 |
| | | |||||
| * | Update `sys/unix`; Rename `thread.create_and_start` | gingerBill | 2020-06-27 | 1 | -1/+2 |
| | | |||||
| * | Remove unused imports in thread.odin | gingerBill | 2020-06-22 | 1 | -2/+0 |
| | | |||||
| * | Add `thread.run*` shorthand procedures; `Thread.init_context` use new ↵ | gingerBill | 2020-06-22 | 1 | -2/+40 |
| | | | | | `Maybe` concept | ||||
| * | Add `thread.Pool` with example in demo.odin; Update linalg to support ↵ | gingerBill | 2020-01-02 | 1 | -3/+3 |
| | | | | | handness changes for projection matrices | ||||
| * | Implement core:thread and core:sync on Unix using pthreads | Tetralux | 2019-12-01 | 1 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also do some cleanup and refactoring of the thread, sync and time APIs. - remove 'semaphore_release' because 'post' and 'wait' is easier to understand - change 'semaphore_wait' to '*_wait_for' to match Condition - pthreads can be given a stack, but doing so requires the user to set up the guard pages manually. BE WARNED. The alignment requirements of the stack are also platform-dependant; it may need to be page size aligned on some systems. Unclear which systems, however. See 'os.get_page_size', and 'mem.make_aligned'. HOWEVER: I was unable to get custom stacks with guard pages working reliably, so while you can do it, the API does not support it. - add 'os.get_page_size', 'mem.make_aligned', and 'mem.new_aligned'. - removed thread return values because windows and linux are not consistent; windows returns 'i32' and pthreads return 'void*'; besides which, if you really wanted to communicate how the thread exited, you probably wouldn't do it with the thread's exit code. - fixed 'thread.is_done' on Windows; it didn't report true immediately after calling 'thread.join'. - moved time related stuff out of 'core:os' to 'core:time'. - add 'mem.align_backward' - fixed default allocator alignment The heap on Windows, and calloc on Linux, both have no facility to request alignment. It's a bit of hack, but the heap_allocator now overallocates; `size + alignment` bytes, and aligns things to at least 2. It does both of these things to ensure that there is at least two bytes before the payload, which it uses to store how much padding it needed to insert in order to fulfil the alignment requested. - make conditions more sane by matching the Windows behaviour. The fact that they were signalled now lingers until a thread tries to wait, causing them to just pass by uninterrupted, without sleeping or locking the underlying mutex, as it would otherwise need to do. This means that a thread no longer has to be waiting in order to be signalled, which avoids timing bugs that causes deadlocks that are hard to debug and fix. See the comment on the `sync.Condition.flag` field. - add thread priority: `thread.create(worker_proc, .High)` | ||||
| * | Fix delayed assert collection | gingerBill | 2018-05-27 | 1 | -79/+0 |
| | | |||||
| * | Add basic package support (no IR support yet) | gingerBill | 2018-05-26 | 1 | -4/+1 |
| | | |||||
| * | Parse directories to be packages | gingerBill | 2018-05-21 | 1 | -0/+82 |