PePerRoNii
a357113651
thread.create et al with name parameter
2025-07-22 10:52:29 +07:00
WP. Yingamphol
8d278acba5
fix system:System.Framework pthread.odin
2025-07-15 12:51:48 +07:00
WP. Yingamphol
ea20383d15
Merge branch 'master' into master
2025-07-15 12:35:06 +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
PePerRoNii
8f81b8761a
changed [^]u8 to cstring for netbsd, added truncate_to_byte(name,0) on name return
2025-07-15 10:55:54 +07:00
PePerRoNii
9aa4afe585
GetThreadDescription ^PWSTR
2025-07-15 10:44:15 +07:00
WP. Yingamphol
805c3228b8
Update core/thread/thread_unix.odin
...
Co-authored-by: Laytan <laytanlaats@hotmail.com >
2025-07-15 09:32:02 +07:00
WP. Yingamphol
5ffba9b222
use copy proc group instead of copy_from_string
...
Co-authored-by: Laytan <laytanlaats@hotmail.com >
2025-07-15 09:30:49 +07:00
WP. Yingamphol
05b769734b
more spacing
...
Co-authored-by: Laytan <laytanlaats@hotmail.com >
2025-07-15 09:29:39 +07:00
WP. Yingamphol
08c298808b
spacing
...
Co-authored-by: Laytan <laytanlaats@hotmail.com >
2025-07-15 09:29:10 +07:00
WP. Yingamphol
02111e7515
no #optional_allocator_error
...
Co-authored-by: Laytan <laytanlaats@hotmail.com >
2025-07-15 09:28:38 +07:00
PePerRoNii
d875d2d445
added set_name in thread_other
2025-07-14 21:43:28 +07:00
PePerRoNii
552b4b64fc
fix GetThreadDescription ^PCWSTR to PWSTR
2025-07-14 21:31:33 +07:00
PePerRoNii
c07830035e
fix proc and variable typos
2025-07-14 21:23:28 +07:00
PePerRoNii
8bc1ffd0df
remove 'do'
2025-07-14 20:58:22 +07:00
PePerRoNii
7265782ddc
remove unnecessary spaces, fix t -> thread, added more description
2025-07-14 20:39:52 +07:00
PePerRoNii
6f3cc31682
substitute sync.current_thread_id with posix.pthread_self for unix
2025-07-14 18:17:19 +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
Harold Brenes
219b0fe535
Replace system:System.framework imports with system:System
...
This makes the linker work for both macOS and iOS targets
2025-07-13 15:45:21 -04:00
gingerBill
38faec757d
Correct consume comment groups in both parsers
2025-07-11 18:41:40 +01:00
Jeroen van Rijn
e89abd006f
Fix #5452
2025-07-11 15:29:27 +02:00
Laytan
86d576f7cc
Merge pull request #5432 from FourteenBrush/master
...
Add `slice.suffix_length`
2025-07-04 19:02:28 +02:00
Brad Lewis
bfb70baa39
Add documentation to Bit_Field_Field when parsing
2025-07-03 21:14:34 -04:00
FourteenBrush
5811525592
Add slice.suffix_length
2025-07-03 16:51:38 +02:00
Jamie Dennis
ee9b4f767b
Fix incorrect type for FONTENUMPROCW
2025-07-01 15:31:22 +12:00
Jeroen van Rijn
2e83e22141
Merge branch 'master' into args-leak
2025-06-27 01:20:37 +02:00
Feoramund
c87655525d
testing: Make test state changes its own feature
...
This patch takes the former debug message output of a test changing its
state and makes it its own feature, toggleable with the
`ODIN_TEST_LOG_STATE_CHANGES` configurable. The output will be at the
info level and is disabled by default.
2025-06-26 12:46:03 -04:00
Jeroen van Rijn
4b6e375f95
Expand self_cleanup documentation.
2025-06-24 14:34:28 +02:00
Sunagatov Denis
e21cde0cf7
sys/linux: Unify IPC_Flags and IPC_Mode bitsets
...
In #5399 it was noticed, that IPC_Mode isn't being used within SystemV
IPC procedures, even though it was designed this way, which lead to a
weird API where in order to call SystemV IPC procedures multiple
transmutes and a bitwise-OR are needed.
This unifies IPC_Mode and IPC_Flags bitsets, making it possible to call
the SystemV IPC procedures without extra casts, and rearranges the flags
in a way that hopefully makes it easier to see when they are not
colliding and should not be mixed. The explanation, explaining this
arrangement of the enum was added.
The IPC_Perm structure is modified, so that the flags can be re-used
between the calls. It's probably not as good as keeping them separate,
but should work... hopefully.
Kept the "old" style of documentation for consistency.
Signed-off-by: Sunagatov Denis <thebumboni@gmail.com >
2025-06-24 20:30:50 +11:00
Jeroen van Rijn
1633d9b69a
Merge pull request #5391 from blob1807/master
...
Fix memory leak in `core:math/big.internal_rat_norm`
2025-06-22 19:43:02 +02:00
blob1807
f2490191b6
Fix memory leak in internal_rat_norm
2025-06-23 02:44:00 +10:00
Brad Lewis
fc58158fb7
Fix issue parsing vendor/stb/image with the core:odin/parser parser
2025-06-22 09:42:33 -04:00
RaphGL
e374ace10d
added IS_SUPPORTED to core:sys/posix
2025-06-21 12:12:13 -01:00
Jeroen van Rijn
1903d7211e
Fix early join after start.
2025-06-21 11:47:00 +02:00
Laytan
7f648d11d6
Merge pull request #5329 from JackMordaunt/jfm-fix_chan_try_send
...
chan: fix try_send and send
2025-06-20 22:11:39 +02:00
Raph
a7e89e1324
Merge branch 'master' into tiocgwinsz_time
2025-06-20 16:50:00 -01:00
RaphGL
0b5be6ad6a
added TIOCGWINSZ to darwin, linux and freebsd
2025-06-20 16:45:05 -01:00
Feoramund
b82753227d
sys/posix: Correct reference to core:text/regex
2025-06-20 10:46:40 -04:00
Feoramund
09690691b6
text/regex: Remove old docmentation and unneeded flag
...
`Unsupported_Flag` was used back when the iterator did not handle
`.Multiline`.
2025-06-20 10:45:48 -04:00
Feoramund
4d4356e806
mem: Guard against Buddy_Allocator overwriting metadata
2025-06-20 06:44:44 -04:00
Feoramund
bfa0e1110a
mem: Don't print Buddy_Allocator.tail
...
This is always a pointer past the end of the buffer given to
`buddy_allocator_init`, which could be an invalid address. Printing may
result in a segmentation violation.
2025-06-20 06:41:42 -04:00
Feoramund
c2f3d074e3
mem: Forbid construction of Buddy_Allocator with insufficient space
...
This takes into account eventual alignment.
2025-06-19 19:41:39 -04:00
Feoramund
57e2d8f1dd
mem: Fix Buddy_Allocator size calculation to truly include alignment
...
This didn't take into account the size of the header plus the size of
the allocation itself by virtue of `align_forward_uint`; this could
result in no change if `size` was equal to `b.alignment` because the
number is aligned, and if `actual_size` and `size` ended up being equal,
no additional space would be requested.
This meant that a block would end up being allocated on top of its
buddy's head.
Fixes #3435
2025-06-19 19:41:38 -04:00
Feoramund
4e9f15965a
mem: Fix inverted condition in buddy_allocator_alloc_bytes_non_zeroed
...
This was causing the procedure to find a block, then find one again,
or to not find a block and not try again.
2025-06-19 19:33:51 -04:00
Jeroen van Rijn
9c810e8340
Fix #5366
2025-06-19 22:46:51 +02:00
Jeroen van Rijn
69c0fe8305
Merge pull request #5344 from Feoramund/fix-2694
...
Review `core/mem/allocators.odin`
2025-06-19 18:35:17 +02:00
David Holland
0a45d4de0c
Fix WAVEFORMATEX struct size ( #5356 )
...
* fix WAVEFORMATEX struct size
* fix size test for WAVEFORMATEX
* pack WAVEFORMATEXTENSIBLE
2025-06-18 12:25:09 +02:00
Jeroen van Rijn
a65ece4426
Allow core:net to be imported with -default-to-panic-allocator.
2025-06-17 15:36:17 +02:00
PePerRoNii
a0e2931dc2
Added GetThreadDescription kernal32.odin
2025-06-17 15:36:48 +07:00