Name

SPVM::Thread::ID - Thread ID

Usage

use Thread::ID;

my $result = Thread::ID->eq($thread_id1, $thread_id2);

Description

The Thread::ID class of SPVM has methods to compare thread IDs.

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

Class Methods

eq

static method eq : int ($thread_id1 : Thread::ID, $thread_id2 : Thread::ID);

Checks if the thread ID $thread_id1 is equal to the thread ID $thread_id2.

If the check is ok, returns 1, otherwise returns 0.

ne

static method ne : int ($thread_id1 : Thread::ID, $thread_id2 : Thread::ID);

Checks if the thread ID $thread_id1 is not equal to the thread ID $thread_id2.

If the check is ok, returns 1, otherwise returns 0.

gt

static method gt : int ($thread_id1 : Thread::ID, $thread_id2 : Thread::ID);

Checks if the thread ID $thread_id1 is greater than the thread ID $thread_id2.

If the check is ok, returns 1, otherwise returns 0.

ge

static method ge : int ($thread_id1 : Thread::ID, $thread_id2 : Thread::ID);

Checks if the thread ID $thread_id1 is greater than or equal to the thread ID $thread_id2.

If the check is ok, returns 1, otherwise returns 0.

lt

static method lt : int ($thread_id1 : Thread::ID, $thread_id2 : Thread::ID);

Checks if the thread ID $thread_id1 is less than the thread ID $thread_id2.

If the check is ok, returns 1, otherwise returns 0.

le

static method le : int ($thread_id1 : Thread::ID, $thread_id2 : Thread::ID);

Checks if the thread ID $thread_id1 is less than or equal to the thread ID $thread_id2.

If the check is ok, returns 1, otherwise returns 0.

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.