jojoe77777
119913da30
Modified misleading comment ( #1455 )
...
The plugin isn't supposed to extend PluginTask, the task is
2017-10-09 07:52:40 +01:00
Dylan K. Taylor
7ba193dc2e
Set ErrorException handler on AsyncWorkers
2017-09-28 18:01:31 +01:00
Dylan K. Taylor
15b08c1417
Added capability to dump AsyncWorkers' memory ( #1379 )
...
This now actually works with PHP 7.2 + latest pthreads, before it was too unstable.
2017-09-14 16:45:48 +01:00
Dylan K. Taylor
aaa3b6e59a
Added explicit AsyncTask->storeLocal(), removed AsyncTask->__construct() object storage ( #1322 )
...
Far too often I see people using IDEs which generate the constructors for them and then accidentally unintentionally store things in the object store. This parent constructor behaviour is unexpected. If a developer wants to store something, they should now do so explicitly by calling storeLocal().
2017-09-10 20:31:28 +01:00
Dylan K. Taylor
1d338bfdf9
Fixed uncaught exceptions during Task->onCancel() causing all kinds of nasty behaviour
...
including crashing the server on shutdown, preventing self-cancellation, and causing memory leaks
2017-09-02 19:28:51 +01:00
SOFe
9902d29734
ServerScheduler::scheduleAsyncTask() returns the worker used ( #1312 )
2017-08-29 10:29:24 +01:00
Dylan K. Taylor
7c212d3d53
Fix formatting issue in AsyncPool
2017-08-25 19:15:57 +01:00
Dylan K. Taylor
d1852834de
Revert "Added capability to dump AsyncWorker memory"
...
This reverts commit eb4594348b6fe4f8af83d5fd386f393956f7b561.
This is far too unstable with more than one worker thread.
2017-08-22 20:46:20 +01:00
Dylan K. Taylor
eb4594348b
Added capability to dump AsyncWorker memory
2017-08-22 19:57:00 +01:00
Dylan K. Taylor
17053389b0
Added memory limits for AsyncWorkers
2017-08-20 12:15:48 +01:00
Dylan K. Taylor
57e7c3d91f
Missed one
2017-07-15 13:30:02 +01:00
Dylan K. Taylor
2018ad6376
Merge master
2017-07-14 12:12:35 +01:00
Dylan K. Taylor
b5790d19bf
Cleaned up MainLogger registration and declared a typehint
...
Remove null hint from MainLogger::getLogger() so static analysis doesn't complain everywhere
just make sure you register the logger before trying to use MainLogger::getLogger() on a different thread!
2017-07-14 11:39:04 +01:00
Dylan K. Taylor
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
Dylan K. Taylor
46a2e6cbf8
Some breaking changes for plugins >:D
2017-07-14 08:52:27 +01:00
Dylan K. Taylor
8fc1501e89
Moar typehints
2017-07-14 08:52:27 +01:00
Dylan K. Taylor
2a7b736f18
Heap of bugfixes, cleanup and PHP 7 upgrades
2017-07-13 19:18:56 +01:00
Dylan K. Taylor
9c9095060f
Register MainLogger on AsyncWorkers to make MainLogger::getLogger() usable in AsyncTasks
...
Threaded static properties aren't thread-local anymore in pthreads 3.1.7dev
2017-07-04 16:50:17 +01:00
Dylan K. Taylor
a73c6f1861
Fixed some unnecessary FQNs in docs
2017-06-25 12:43:04 +01:00
Dylan K. Taylor
e18a3ac933
Fixed UUID-related issues
2017-06-07 13:11:03 +01:00
Dylan K. Taylor
481114281e
Server starts!
2017-06-07 12:53:16 +01:00
Dylan K. Taylor
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
Dylan K. Taylor
674394c4f5
Fixed undefined offset when retrieving something from the thread store that doesn't exist ( #919 )
2017-05-22 13:53:57 +08:00
Dylan K. Taylor
568e2760f1
Collect workers when cancelling all tasks
2017-05-17 19:30:50 +01:00
Dylan K. Taylor
00e6d6a6b1
Fixed AsyncTask memory leak ( #922 )
...
* Added PocketMine-TesterPlugin submodule with regression test
2017-05-17 15:43:44 +01:00
SOFe
5a9b5db103
Better cURL API, use async in timings ( #834 )
...
* Improved cURL functions
* Created BulkCurlTask
* Use asynchronous cURL posting in /timings paste
Closes #509
2017-04-25 11:52:18 +01:00
Dylan K. Taylor
6ece57e23e
Merge changes from master
2017-04-21 22:48:18 +01:00
Sandertv
1c7773c5f1
Visibility keyword before final or abstract keyword. ( #814 )
2017-04-13 20:58:53 +08:00
Dylan K. Taylor
56990eb28b
MCPE protocol gets its own namespace
2017-03-08 20:28:39 +00:00
Dylan K. Taylor
b28e38ab26
Move some exceptions out of utils into their relevant namespaces, move some Chunk methods to ChunkUtils for I/O, refactor "colour" -> "color"
2017-01-15 11:31:12 +00:00
Dylan K. Taylor
1cb96d24ce
Some fixes, thanks PhpStorm
2017-01-04 11:29:24 +00:00
SOFe
175dd0efa6
PhpStorm inspections
...
Fixed some minor bugs and dropped some obsolete code
pocketmine\level\generator namespace is ignored in this commit
2016-12-14 21:49:35 +00:00
SOFe
da23568546
Disallow scheduling the same AsyncTask instance more than once
2016-11-20 01:12:38 +08:00
SOFe
37ae760417
Fixed crashes after scheduleAsyncTaskToWorker() calls
2016-11-13 18:32:11 +08:00
SOFe
ab4d6b1e36
Clarified that AsyncTask should not run for a long time
2016-11-13 18:14:41 +08:00
SOFe
75fa2f1132
Fixed array progress crashing
...
Forgot to serialize them. They would be converted to Volatile, which is Threaded. Threaded objects still crash with progressUpdates.
2016-11-12 18:57:52 +08:00
SOFe
d5881dbe83
Disallow Threaded objects to be passed as progress parameter
2016-11-12 18:33:25 +08:00
SOFe
8404ce88bd
Fixed pthreads crashes with progressUpdates
2016-11-12 18:30:55 +08:00
SOFe
7861822a0f
Fixed garbage AsyncTasks cannot be accessed
2016-11-12 17:47:07 +08:00
SOFe
e6485c4734
Added AsyncTask progress update API
2016-11-12 17:31:59 +08:00
SOFe
074583d104
Builtin thread-local object storage for AsyncTask ( #1 )
...
* Added AsyncTask::fetchLocal()
2016-11-06 22:02:53 +08:00
SOFe
58ff381557
PhpStorm automated formatting ( #11 )
...
* PhpStorm reformatting
* Tuned PhpStorm reformatting
* Improved ItemIds and BlockIds formatting
* Tuned more PhpStorm reformatting
* Improved string concatenation
2016-10-03 19:05:48 +08:00
SOF3
6fc435da0e
Imports rearrangement
2016-10-03 00:43:46 +08:00
Dylan K. Taylor
7145e16bce
Fix getHandler() returns null on tasks ( #3 )
2016-09-30 19:19:59 +01:00
Intyre
a2734f6dc0
Merged master into php7 to support 0.13.1
2016-01-22 17:36:45 +01:00
Shoghi Cervantes
ddc140af5e
Updated to new pthreads version, updated RakLib
2015-09-27 13:37:27 +02:00
Shoghi Cervantes
0bcf639a98
Changed how exceptions work and are logged, throw proper exceptions on tasks
2015-09-18 12:03:24 +02:00
Shoghi Cervantes
8768b7fdbd
Merge remote-tracking branch 'origin/mcpe-0.12' into php7
2015-09-17 12:25:05 +02:00
Shoghi Cervantes
ed559fdf98
Fixed not sending UUIDs properly
2015-09-15 12:23:15 +02:00
Shoghi Cervantes
3ffdb8e552
Removed @deprecated classes, methods and properties, added some type hints
2015-09-12 17:10:11 +02:00