SPVM::Thread(3)
π NAME π
okay so bestie, this is the manual page for SPVM::Thread(3) from the User Contributed Perl Documentation manual, and the actual name is SPVM::Thread - Native Thread. That's the whole vibe: native threads in SPVM. π
β¨ USAGE β¨
Here's the starter pack, literally copy-paste energy:
use Thread;
my $results = [0];
my $thread = Thread->new([$results : int[]] method : void () {
$results->[0] = 5;
});
$thread->join;
π DESCRIPTION π
The Thread class in SPVM has methods to create native threads. No cap. β¨
This class is a binding of std::thread in C++ β the reference link is https://en.cppreference.com/w/cpp/thread/thread. π¦
π CLASS METHODS π
static method new : Thread ($task : Callback);
This one creates a new native thread and runs the task $task on it. Then it creates a new Thread object and returns it. Slay. π
π¦ INSTANCE METHODS π¦
πΈ join πΈ
method join : void ();
Waits for the thread to finish. That's it, that's the whole method. π
π get_id π
method get_id : Thread::ID ();
Gets the thread ID. Iconic. β
π REPOSITORY π
SPVM::Thread - Github β https://github.com/yuki-kimoto/SPVM-Thread. π«Ά
π SEE ALSO π
Thread::ThisThreadThread::IDstd::threadin C++ βhttps://en.cppreference.com/w/cpp/thread/thread
β AUTHOR β
Yuki Kimoto "kimoto.yuki@gmail.com" β periodt. π
π 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.
okay bestie, that's the whole manual page! footer source/version and date check: perl v5.42.2, 2026-02-03, and yes, this is SPVM::Thread(3). byeee πβ¨
π¦ where this page comes from
- alpine 3.24: spvm-thread-doc 0.005-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms