PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\snooze\SleeperNotifier Class Reference
+ Collaboration diagram for pocketmine\snooze\SleeperNotifier:

Public Member Functions

 __construct (private readonly ThreadSafeArray $sharedObject, private readonly int $notifierId)
 
 wakeupSleeper ()
 

Detailed Description

Used to wake up the sleeping thread from another thread. Use SleeperHandlerEntry::createNotifier() inside the thread to create this.

Definition at line 23 of file SleeperNotifier.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\snooze\SleeperNotifier::__construct ( private readonly ThreadSafeArray $sharedObject,
private readonly int $notifierId )

Definition at line 31 of file SleeperNotifier.php.

Member Function Documentation

◆ wakeupSleeper()

pocketmine\snooze\SleeperNotifier::wakeupSleeper ( )
final

Call this method to wake up the sleeping thread.

Definition at line 39 of file SleeperNotifier.php.


The documentation for this class was generated from the following file: