Thread/ThisThread.pm untested

filter: Statementstmt n/a Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a SCAR -
1 package SPVM::Thread::ThisThread;
2  
3 1;
4  
5 =head1 Name
6  
7 SPVM::Thread::ThisThread - Getting Current Thread Information
8  
9 =head1 Usage
10  
11 use Thread::ThisThread;
12
13 my $current_thread_id = Thread::ThisThread->get_id;
14  
15 =head1 Description
16  
17 Thread::ThisThread class in L<SPVM> has methods to get information of the current thread.
18  
19 This class is a binding of L<std::this_thread in C++|https://en.cppreference.com/w/cpp/thread>.
20  
21 =head1 Class Methods
22  
23 C<static method get_id : L<Thread::ID|SPVM::Thread::ID> ();>
24  
25 Gets the thread ID of the current thread.
26  
27 =head2 See Also
28  
29 =over 2
30  
31 =item * L<Thread|SPVM::Thread>
32  
33 =item * L<Thread::ID|SPVM::Thread::ID>
34  
35 =item * L<std::this_thread in C++|https://en.cppreference.com/w/cpp/thread>
36  
37 =back
38  
39 =head1 Copyright & License
40  
41 Copyright 2022-2022 Yuki Kimoto, all rights reserved.
42  
43 This program is free software; you can redistribute it and/or modify it
44 under the same terms as Perl itself.
45