Laytan Laats
28fac62a02
fix some bugs with -disable-assert
2024-07-16 18:44:18 +02:00
Laytan Laats
604551eb2d
wasi: make the demo run on wasi and run it in CI
2024-06-29 23:15:31 +02:00
Feoramund
0ea0fac2f9
Call pthread_cancel on Darwin, with advisory comment
2024-06-28 20:47:37 -04:00
Laytan Laats
00dfff7ee0
core/thread: fix a deadlock situation on unix
2024-06-07 20:28:09 +02:00
gingerBill
f9fd8f0c25
Merge pull request #3439 from andreas-jonsson/netbsd
...
NetBSD support
2024-05-15 10:33:52 +01:00
Feoramund
33c6f75a2e
Fix joining non-Started threads from blocking main thread
2024-05-10 17:24:45 -04:00
Andreas T Jonsson
b72c2edabb
Merge branch 'master' into netbsd
2024-05-10 09:04:52 +02:00
Feoramund
9cdb7b2584
Fix discrepancy with pthread cancelability state
2024-04-22 17:16:33 -04:00
Andreas T Jonsson
41d4dfbcd5
Fixed concurrency issue
...
Fixed broken thread policy causing deadlocks.
2024-04-18 16:20:49 +02:00
Andreas T Jonsson
38640d5d9e
Updated core lib and did cleanup
...
Updated core with some path related functions and did some minor code cleanup.
Most of the standard library function is just a matter of copy what is there for the other BSDs.
2024-04-18 10:12:42 +02:00
Andreas T Jonsson
4558f3992a
Initial commit of NetBSD port
2024-04-16 14:27:29 +02:00
avanspector
fca691a066
fix core:thread and a memory leak
...
in the future probably native non-pthread implementation for haiku will be required
2024-02-27 02:38:06 +01:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
gingerBill
2cc22d118d
Require parentheses for #align(N)
2023-08-15 14:55:02 +01:00
hikari
3b8515beb0
[core:thread] Seeing if this fixes network tests
2023-06-07 20:52:41 +03:00
hikari
7b62b81ebd
[core:thread] Fix compilation
2023-06-07 20:03:19 +03:00
hikari
dcf4e51787
[core:thread] Added self_cleanup flag to properly auto-clean threads
2023-06-07 19:11:16 +03:00
Tetralux
5d6b923244
[thread] Refactor handling of 'init_context' + add doc comments for it
2023-06-03 08:08:18 +00:00
Jeroen van Rijn
f4ad4c7aa6
Disable thread.terminate on Darwin for now.
2022-05-11 16:17:35 +02:00
Jeroen van Rijn
8fb718245a
Implement pthread_cancel.
2022-05-11 15:52:04 +02:00
Jeroen van Rijn
56e3b7cb7d
Fix join on *nix.
2022-05-11 13:43:29 +02:00
gingerBill
4eb4ae6305
Replace sync with sync2
2022-03-30 17:42:44 +01:00
Dale Weiler
3da8fa9b27
can use sync.guard here
2022-03-11 08:41:03 -05:00
Dale Weiler
32ba5e7ad2
formatting
2022-03-11 08:36:04 -05:00
Dale Weiler
52df80dccd
fix for mac & use atomic store on write side to avoid race
2022-03-11 08:35:23 -05:00
Dale Weiler
7f845bb165
fix for spurious wakeups
2022-03-11 08:30:03 -05:00
Dale Weiler
0e6de5673b
fix thread data races
2022-03-11 08:06:23 -05:00
Sébastien Marie
5676c9e7eb
initial OpenBSD support
2022-02-25 08:49:25 +00:00
powerc9000
2f3c5336d9
Fix mutex and conditions trying to be destroyed twice in unix
2022-01-27 15:38:16 -07:00
gingerBill
d165de0d4d
Move thread initialization variables in thread_unix.odin
2021-10-26 11:46:31 +01:00
gingerBill
c9e6862332
Add id to thread.Thread
2021-10-24 12:30:25 +01:00
gingerBill
ca33cb990b
Strip semicolons in core which were missing
2021-09-08 13:12:38 +01:00
gingerBill
21cbac755e
Make or_else and or_return operators (binary and suffix respectively)
2021-08-15 17:14:35 +01:00
gingerBill
f7413ca974
Fix thread_unix.odin
2021-07-05 16:36:07 +01:00
gingerBill
9b3a0251ca
Use or_else in the core library when it makes sense
2021-07-05 16:33:01 +01:00
gingerBill
ebed29fc09
Revert *nix thread stuff to old sync
...
(I was just testing)
2021-04-13 19:09:04 +01:00
gingerBill
1156bd9dd0
Remove thread stuff from sync2; Cleanup package thread
2021-04-11 18:25:56 +01:00
gingerBill
95b94a0f56
Fix sync.Channel code; add thread.run_with_poly_data and run_with_poly_data(2|3|4) procedures
2020-11-10 15:00:40 +00:00
gingerBill
fc4fdd588e
Remove usage of do in core library
2020-09-23 17:17:14 +01:00
Christian Seibold
577be4a8ae
Get Odin compiling and produced exe's running on FreeBSD
2020-09-14 15:22:35 -05:00
gingerBill
b2beb9512f
Add thread.join_multiple
2020-07-14 21:08:04 +01:00
gingerBill
858c5f8fd8
Update thread_unix logic
2020-06-27 11:36:48 +01:00
gingerBill
0ab356aa4e
Fix sync and thread on *nix
2020-06-22 13:32:58 +01:00
gingerBill
b3c51a8b44
Add thread.run* shorthand procedures; Thread.init_context use new Maybe concept
2020-06-22 13:28:37 +01:00
gingerBill
218c1599b1
Add explicit context to thread_unix.odin
2020-05-14 13:48:03 +01:00
gingerBill
b725ae5ae0
Merge pull request #617 from Tetralux/dep-yield-processor
...
Rename `yield_processor` to `cpu_relax`
2020-04-21 18:07:04 +01:00
Tetralux
8dd1b61aa2
sync.yield_processor -> sync.cpu_relax; have it call intrinsics.cpu_relax
2020-04-21 16:07:18 +00:00
Tetralux
d3f2f94800
Remove outdated comment
...
This is what I get for removing the ability to provide a stack at the last minute.... 🤣
2020-04-21 15:22:42 +01:00
KTRosenberg
d017b5de9d
replaced pthread_yield with ssched_yield, fixed semaphore post:q
2020-01-02 16:25:48 -05:00
gingerBill
93ead4bcb3
Fix typo
2020-01-02 15:41:32 +00:00