Pung
7005cf7cf0
update OS limit to its proper value
2026-05-01 13:22:03 +07:00
PePerRoNii
d83d47b19d
more sensible allocation and fix comment
2026-03-25 13:58:24 +07:00
PePerRoNii
c9064cf532
more concise null termination
2026-03-23 22:51:16 +07:00
WP. Yingamphol
9529ebf8b7
forgot to add raw_data
2025-12-07 22:52:03 +07:00
WP. Yingamphol
f736047df4
Make compatible with the new win32.SetThreadDescription
...
The second argument is changed to a cstring16.
2025-12-07 22:09:49 +07:00
WP. Yingamphol
ed75ab49bb
Change windows Thread_Description_Length to 128
2025-09-14 13:57:49 +07:00
PePerRoNii
5ab3c1794e
fixed windows api and free GetThreadName's allocation
2025-08-20 21:51:56 +07:00
PePerRoNii
3c9d05a8c6
fix tid/handle bug on macos/win
2025-07-22 11:00:49 +07:00
PePerRoNii
a357113651
thread.create et al with name parameter
2025-07-22 10:52:29 +07:00
PePerRoNii
228e2752a3
use win32.wstring_to_utf8, default to temp_allocator, guarantees proper null termination
2025-07-15 12:29:26 +07:00
WP. Yingamphol
05b769734b
more spacing
...
Co-authored-by: Laytan <laytanlaats@hotmail.com >
2025-07-15 09:29:39 +07:00
PePerRoNii
c07830035e
fix proc and variable typos
2025-07-14 21:23:28 +07:00
PePerRoNii
7265782ddc
remove unnecessary spaces, fix t -> thread, added more description
2025-07-14 20:39:52 +07:00
PePerRoNii
b87b5431b1
substitute 'do'
2025-07-14 18:10:35 +07:00
PePerRoNii
0a3f73077e
Get/Set Thread names
2025-07-14 17:23:36 +07:00
Jeroen van Rijn
1903d7211e
Fix early join after start.
2025-06-21 11:47:00 +02:00
Jeroen van Rijn
ac5f3746cf
Fix #5321
2025-06-12 11:30:36 +02:00
Karl Zylinski
093ade0504
Merge branch 'master' into file-tags-without-comments
2024-09-17 19:36:17 +02:00
Karl Zylinski
19f0127e55
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
2024-09-14 18:27:49 +02:00
Feoramund
45da009377
Use more atomic handling of thread flags
...
This can prevent a data race on Linux with `Self_Cleanup`.
2024-09-09 16:19:15 -04:00
Feoramund
d338642dc4
Add API for freeing thread_local state
2024-08-26 06:01:59 -04:00
Laytan Laats
604551eb2d
wasi: make the demo run on wasi and run it in CI
2024-06-29 23:15:31 +02:00
gingerBill
54ebfa6179
Fix hanging on thread.join for windows where the thread had not been started
2024-05-13 12:58:18 +01:00
Feoramund
33c6f75a2e
Fix joining non-Started threads from blocking main thread
2024-05-10 17:24:45 -04:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
gingerBill
90ac400ec5
stdcall -> system
2024-01-17 17:25:23 +00:00
gingerBill
44ea82f845
Clean up usage of using throughout core and vendor
2023-07-31 11:46:40 +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
gingerBill
c194dfbdf7
Remove thread.init_context = context
2023-05-31 22:23:47 +01:00
gingerBill
97a183f412
Clean up thread_windows.odin
2022-03-31 01:13:29 +01:00
gingerBill
4eb4ae6305
Replace sync with sync2
2022-03-30 17:42:44 +01:00
gingerBill
c9e6862332
Add id to thread.Thread
2021-10-24 12:30:25 +01:00
gingerBill
251da264ed
Remove unneeded semicolons from the core library
2021-08-31 22:21:13 +01:00
gingerBill
21cbac755e
Make or_else and or_return operators (binary and suffix respectively)
2021-08-15 17:14:35 +01:00
gingerBill
9b3a0251ca
Use or_else in the core library when it makes sense
2021-07-05 16:33:01 +01:00
gingerBill
bee8beb2c9
Default to pthreads in sync2 for *nix
2021-04-13 19:04:44 +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
Patric Dexheimer
59b8748c2c
Update thread_windows.odin
2020-10-31 02:40:52 -03:00
Patric Dexheimer
2231f02f61
Update thread_windows.odin
...
`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`.
2020-10-31 02:37:26 -03:00
gingerBill
7ae54ae3b4
Add -no-dynamic-literals to disallow dynamic array and map literals
2020-07-14 23:01:34 +01:00
gingerBill
b2beb9512f
Add thread.join_multiple
2020-07-14 21:08:04 +01:00
gingerBill
2b18f43b65
Update sys/windows; Add sync.Blocking_Mutex (windows only at the moment)
2020-06-27 00:59:40 +01:00
gingerBill
6bd05ef5d7
Begin migration from sys/win32 to sys/windows
2020-06-26 19:11:34 +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
e0a242e9a1
Enforce explicit context definition for procedure calls
2020-05-14 13:44:28 +01:00
gingerBill
3bd00fd6b7
Add thread.Pool with example in demo.odin; Update linalg to support handness changes for projection matrices
2020-01-02 15:07:12 +00:00