Open xzores opened 1 month ago
We have a full rework of core:thread
in the wings that needs a little TLC. Should come in within the next fortnight or so.
awesome, should I leave this open?
awesome, should I leave this open?
Please do.
I want to add: I also had a problem with self_clean, where it crashed and I wanted to make an example which lead me to this problem. It crashed when self_clean = true. It crashed on join
Noted, thanks for the extra clarification.
Context
Observe the following code, using the build in libraries:
The output is :
Finished without crashing
and nothing more.Odin: dev-2024-07-nightly:b4ca044 OS: Windows 11 Home Basic (version: 23H2), build 22631.3880 CPU: 13th Gen Intel(R) Core(TM) i9-13900HX RAM: 32507 MiB Backend: LLVM 17.0.1
Expected Behavior
I would expect join to wait until the thread is done. So I would expect the output to be:
Current Behavior
In the current behavior the program terminates almost instantly, it does not wait for the second thread.
Failure Information (for bugs)
It will wait for the thread, if there is placed a signifiently long time between
create_and_start
andjoin
. This can be observed in this example:Where the output is:
Steps to Reproduce
Cope pasta this: