Register MainLogger on AsyncWorkers to make MainLogger::getLogger() usable in AsyncTasks

Threaded static properties aren't thread-local anymore in pthreads 3.1.7dev
This commit is contained in:
Dylan K. Taylor
2017-07-04 15:47:05 +01:00
parent 97f6a32557
commit 9c9095060f
4 changed files with 21 additions and 3 deletions

View File

@ -25,6 +25,7 @@ namespace pocketmine\scheduler;
use pocketmine\Collectable;
use pocketmine\Server;
use pocketmine\utils\MainLogger;
/**
* Class used to run async tasks in other threads.