Name

SPVM::Thread::ThisThread - Getting Current Thread Information

Usage

use Thread::ThisThread;

my $current_thread_id = Thread::ThisThread->get_id;

Description

The Thread::ThisThread class of SPVM has methods to get information of the current thread.

This class is a binding of std::this_thread in C++.

Class Methods

static method get_id : Thread::ID ();

Gets the thread ID of the current thread.

See Also

Copyright & License

Copyright 2022-2022 Yuki Kimoto, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.