| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Make `or_else` and `or_return` operators (binary and suffix respectively) | gingerBill | 2021-08-15 | 2 | -2/+2 | |
| | | ||||||
| * | 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 | 2 | -13/+2 | |
| | | ||||||
| * | Revert *nix thread stuff to old sync | gingerBill | 2021-04-13 | 2 | -11/+23 | |
| | | | | | (I was just testing) | |||||
| * | Default to pthreads in sync2 for *nix | gingerBill | 2021-04-13 | 3 | -16/+10 | |
| | | ||||||
| * | Remove thread stuff from sync2; Cleanup package thread | gingerBill | 2021-04-11 | 3 | -79/+79 | |
| | | ||||||
| * | 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 | 3 | -11/+102 | |
| | | | | | `run_with_poly_data(2|3|4)` procedures | |||||
| * | Update thread_windows.odin | Patric Dexheimer | 2020-10-31 | 1 | -2/+2 | |
| | | ||||||
| * | Update thread_windows.odin | Patric Dexheimer | 2020-10-31 | 1 | -2/+2 | |
| | | | | `n` was left over being always zero. But you want `win32.WaitForMultipleObjects` to be the number of threads to wait for which u already have with `j`. | |||||
| * | 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 | |
| | | ||||||
| * | Update package sync | gingerBill | 2020-08-02 | 1 | -1/+1 | |
| | | ||||||
| * | Add `-no-dynamic-literals` to disallow dynamic array and map literals | gingerBill | 2020-07-14 | 1 | -1/+1 | |
| | | ||||||
| * | Add thread.join_multiple | gingerBill | 2020-07-14 | 2 | -0/+32 | |
| | | ||||||
| * | Add sync.Once | gingerBill | 2020-07-14 | 1 | -0/+30 | |
| | | ||||||
| * | Add `raw_data` to replace cases in which `&x[0]` was used | gingerBill | 2020-06-29 | 1 | -2/+1 | |
| | | ||||||
| * | Update thread_unix logic | gingerBill | 2020-06-27 | 1 | -6/+14 | |
| | | ||||||
| * | Update `sys/unix`; Rename `thread.create_and_start` | gingerBill | 2020-06-27 | 1 | -1/+2 | |
| | | ||||||
| * | Update sys/windows; Add sync.Blocking_Mutex (windows only at the moment) | gingerBill | 2020-06-27 | 1 | -1/+1 | |
| | | ||||||
| * | Begin migration from sys/win32 to sys/windows | gingerBill | 2020-06-26 | 1 | -14/+14 | |
| | | ||||||
| * | Remove unused imports in thread.odin | gingerBill | 2020-06-22 | 1 | -2/+0 | |
| | | ||||||
| * | 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 | 3 | -22/+61 | |
| | | | | | `Maybe` concept | |||||
| * | Add explicit context to thread_unix.odin | gingerBill | 2020-05-14 | 1 | -0/+2 | |
| | | ||||||
| * | Enforce explicit context definition for procedure calls | gingerBill | 2020-05-14 | 1 | -1/+1 | |
| | | ||||||
| * | Fixed thread_pool not destroying threads | jharler | 2020-05-11 | 1 | -0/+5 | |
| | | ||||||
| * | 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 | 4 | -3/+159 | |
| | | | | | handness changes for projection matrices | |||||
| * | Fix new changes to runtime for unix | gingerBill | 2019-12-31 | 1 | -2/+2 | |
| | | ||||||
| * | Move definition of mem.Allocator and log.Logger to `package runtime`, to ↵ | gingerBill | 2019-12-31 | 1 | -2/+2 | |
| | | | | | reduce import cycle magic | |||||
| * | Make default `context.temp_allocator` thread safe when using `package thread` | gingerBill | 2019-12-29 | 2 | -5/+23 | |
| | | ||||||
| * | 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 | 3 | -17/+194 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)` | |||||
| * | Replace `context <- c {}` with `context = c;`. context assignments are ↵ | gingerBill | 2018-08-04 | 1 | -6/+2 | |
| | | | | | scope based | |||||
| * | Remove special shared scope for runtime stuff | gingerBill | 2018-06-03 | 1 | -1/+2 | |
| | | ||||||
| * | Fix delayed assert collection | gingerBill | 2018-05-27 | 1 | -1/+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 | |