File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2517,7 +2517,7 @@ pub const Thread = struct {
2517
2517
2518
2518
pub const use_pthreads = is_posix and builtin .link_libc ;
2519
2519
2520
- /// An opaque type representing a kernel thread ID.
2520
+ /// An type representing a kernel thread ID.
2521
2521
pub const Id = if (use_pthreads )
2522
2522
c .pthread_t
2523
2523
else switch (builtin .os ) {
Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ test "access file" {
34
34
try os .deleteTree (a , "os_test_tmp" );
35
35
}
36
36
37
- fn testThreadIdFn (threadId : * ? os.Thread.Id ) void {
37
+ fn testThreadIdFn (threadId : * os.Thread.Id ) void {
38
38
threadId .* = os .Thread .currentId ();
39
39
}
40
40
41
41
test "std.os.Thread.currentId" {
42
- var threadCurrentId : ? os.Thread.Id = null ;
42
+ var threadCurrentId : os.Thread.Id = undefined ;
43
43
const thread = try os .spawnThread (& threadCurrentId , testThreadIdFn );
44
44
const threadId = thread .id ();
45
45
thread .wait ();
You can’t perform that action at this time.
0 commit comments