| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Replace `core:*` to `base:*` where appropriate | gingerBill | 2024-01-28 | 1 | -1/+1 |
| | | |||||
| * | Require parentheses for `#align(N)` | gingerBill | 2023-08-15 | 1 | -1/+1 |
| | | |||||
| * | [core:thread] Seeing if this fixes network tests | hikari | 2023-06-07 | 1 | -8/+1 |
| | | |||||
| * | [core:thread] Fix compilation | hikari | 2023-06-07 | 1 | -0/+2 |
| | | |||||
| * | [core:thread] Added `self_cleanup` flag to properly auto-clean threads | hikari | 2023-06-07 | 1 | -0/+5 |
| | | |||||
| * | [thread] Refactor handling of 'init_context' + add doc comments for it | Tetralux | 2023-06-03 | 1 | -12/+12 |
| | | |||||
| * | Disable thread.terminate on Darwin for now. | Jeroen van Rijn | 2022-05-11 | 1 | -7/+14 |
| | | |||||
| * | Implement pthread_cancel. | Jeroen van Rijn | 2022-05-11 | 1 | -1/+10 |
| | | |||||
| * | Fix join on *nix. | Jeroen van Rijn | 2022-05-11 | 1 | -5/+14 |
| | | |||||
| * | Replace `sync` with `sync2` | gingerBill | 2022-03-30 | 1 | -1/+1 |
| | | |||||
| * | can use sync.guard here | Dale Weiler | 2022-03-11 | 1 | -2/+1 |
| | | |||||
| * | formatting | Dale Weiler | 2022-03-11 | 1 | -2/+2 |
| | | |||||
| * | fix for mac & use atomic store on write side to avoid race | Dale Weiler | 2022-03-11 | 1 | -2/+2 |
| | | |||||
| * | fix for spurious wakeups | Dale Weiler | 2022-03-11 | 1 | -1/+1 |
| | | |||||
| * | fix thread data races | Dale Weiler | 2022-03-11 | 1 | -80/+40 |
| | | |||||
| * | initial OpenBSD support | Sébastien Marie | 2022-02-25 | 1 | -1/+1 |
| | | |||||
| * | Fix mutex and conditions trying to be destroyed twice in unix | powerc9000 | 2022-01-27 | 1 | -2/+0 |
| | | |||||
| * | Move thread initialization variables in thread_unix.odin | gingerBill | 2021-10-26 | 1 | -2/+6 |
| | | |||||
| * | Add `id` to `thread.Thread` | gingerBill | 2021-10-24 | 1 | -1/+2 |
| | | |||||
| * | Strip semicolons in core which were missing | gingerBill | 2021-09-08 | 1 | -55/+55 |
| | | |||||
| * | Make `or_else` and `or_return` operators (binary and suffix respectively) | gingerBill | 2021-08-15 | 1 | -1/+1 |
| | | |||||
| * | Fix `thread_unix.odin` | gingerBill | 2021-07-05 | 1 | -0/+1 |
| | | |||||
| * | Use `or_else` in the core library when it makes sense | gingerBill | 2021-07-05 | 1 | -7/+1 |
| | | |||||
| * | Revert *nix thread stuff to old sync | gingerBill | 2021-04-13 | 1 | -4/+11 |
| | | | | | (I was just testing) | ||||
| * | Remove thread stuff from sync2; Cleanup package thread | gingerBill | 2021-04-11 | 1 | -32/+26 |
| | | |||||
| * | Fix sync.Channel code; add `thread.run_with_poly_data` and ↵ | gingerBill | 2020-11-10 | 1 | -2/+3 |
| | | | | | `run_with_poly_data(2|3|4)` procedures | ||||
| * | Remove usage of `do` in core library | gingerBill | 2020-09-23 | 1 | -3/+9 |
| | | |||||
| * | Get Odin compiling and produced exe's running on FreeBSD | Christian Seibold | 2020-09-14 | 1 | -1/+1 |
| | | |||||
| * | Add thread.join_multiple | gingerBill | 2020-07-14 | 1 | -0/+7 |
| | | |||||
| * | Update thread_unix logic | gingerBill | 2020-06-27 | 1 | -6/+14 |
| | | |||||
| * | Fix sync and thread on *nix | gingerBill | 2020-06-22 | 1 | -1/+5 |
| | | |||||
| * | Add `thread.run*` shorthand procedures; `Thread.init_context` use new ↵ | gingerBill | 2020-06-22 | 1 | -3/+3 |
| | | | | | `Maybe` concept | ||||
| * | Add explicit context to thread_unix.odin | gingerBill | 2020-05-14 | 1 | -0/+2 |
| | | |||||
| * | Merge pull request #617 from Tetralux/dep-yield-processor | gingerBill | 2020-04-21 | 1 | -1/+2 |
| |\ | | | | | Rename `yield_processor` to `cpu_relax` | ||||
| | * | `sync.yield_processor` -> `sync.cpu_relax`; have it call `intrinsics.cpu_relax` | Tetralux | 2020-04-21 | 1 | -1/+2 |
| | | | |||||
| * | | Remove outdated comment | Tetralux | 2020-04-21 | 1 | -9/+0 |
| |/ | | | This is what I get for removing the ability to provide a stack at the last minute.... 🤣 | ||||
| * | replaced pthread_yield with ssched_yield, fixed semaphore post:q | KTRosenberg | 2020-01-02 | 1 | -1/+1 |
| | | |||||
| * | Fix typo | gingerBill | 2020-01-02 | 1 | -1/+1 |
| | | |||||
| * | Add `thread.Pool` with example in demo.odin; Update linalg to support ↵ | gingerBill | 2020-01-02 | 1 | -0/+5 |
| | | | | | handness changes for projection matrices | ||||
| * | Fix new changes to runtime for unix | gingerBill | 2019-12-31 | 1 | -2/+2 |
| | | |||||
| * | Make default `context.temp_allocator` thread safe when using `package thread` | gingerBill | 2019-12-29 | 1 | -1/+9 |
| | | |||||
| * | whoops | Tetralux | 2019-12-24 | 1 | -3/+0 |
| | | |||||
| * | Fix thread/thread_unix.odin to use the new `switch` conventions | gingerBill | 2019-12-22 | 1 | -4/+3 |
| | | |||||
| * | Implement core:thread and core:sync on Unix using pthreads | Tetralux | 2019-12-01 | 1 | -0/+153 |
| 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)` | |||||