blob: 0743d8628c067870b5475b8f82f4286810071e0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
joining a thread not joinable is no more returning EINVAL
Its behaviour is undefined
--- a/tests/thread.test 2023-03-16 21:31:05.333423098 +0100
+++ b/tests/thread.test 2023-03-16 21:31:25.837324400 +0100
@@ -100,15 +100,6 @@
set c
} {0}
-test thread-4.5 {thread::create - join detached thread} {
- ThreadReap
- set tid [thread::create]
- thread::send -async $tid {after 1000 ; thread::release}
- catch {set res [thread::join $tid]} msg
- ThreadReap
- lrange $msg 0 2
-} {cannot join thread}
-
test thread-5.0 {thread::release} {
ThreadReap
set tid [thread::create {thread::release}]
|