@@ -53,6 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * @param int $ownerPid |
| 56 | + * @param \Ackintosh\Snidel\Log $log |
|
| 56 | 57 | */ |
| 57 | 58 | public function __construct($ownerPid, $log, $concurrency = 5) |
| 58 | 59 | { |
@@ -68,6 +69,7 @@ discard block |
||
| 68 | 69 | |
| 69 | 70 | /** |
| 70 | 71 | * @param \Ackintosh\Snidel\Task |
| 72 | + * @param \Ackintosh\Snidel\Task\Task $task |
|
| 71 | 73 | * @return void |
| 72 | 74 | * @throws \RuntimeException |
| 73 | 75 | */ |
@@ -89,7 +91,7 @@ discard block |
||
| 89 | 91 | } |
| 90 | 92 | |
| 91 | 93 | /** |
| 92 | - * @return \Ackintosh\Snidel\Fork\Fork |
|
| 94 | + * @return Result |
|
| 93 | 95 | */ |
| 94 | 96 | private function dequeue() |
| 95 | 97 | { |
@@ -293,6 +295,9 @@ discard block |
||
| 293 | 295 | } |
| 294 | 296 | } |
| 295 | 297 | |
| 298 | + /** |
|
| 299 | + * @param string $tag |
|
| 300 | + */ |
|
| 296 | 301 | public function getCollection($tag = null) |
| 297 | 302 | { |
| 298 | 303 | if ($tag === null) { |
@@ -335,7 +340,7 @@ discard block |
||
| 335 | 340 | } |
| 336 | 341 | |
| 337 | 342 | /** |
| 338 | - * @return \Ackintosh\Sniden\Error |
|
| 343 | + * @return Error |
|
| 339 | 344 | */ |
| 340 | 345 | public function getError() |
| 341 | 346 | { |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use Ackintosh\Snidel\Result\Queue as ResultQueue; |
| 10 | 10 | use Ackintosh\Snidel\Result\Collection; |
| 11 | 11 | use Ackintosh\Snidel\Error; |
| 12 | -use Ackintosh\Snidel\Exception\SharedMemoryControlException; |
|
| 13 | 12 | use Ackintosh\Snidel\Worker; |
| 14 | 13 | use Ackintosh\Snidel\ActiveWorkerSet; |
| 15 | 14 | |
@@ -7,10 +7,7 @@ |
||
| 7 | 7 | use Ackintosh\Snidel\Result\Result; |
| 8 | 8 | use Ackintosh\Snidel\Log; |
| 9 | 9 | use Ackintosh\Snidel\Pcntl; |
| 10 | -use Ackintosh\Snidel\DataRepository; |
|
| 11 | -use Ackintosh\Snidel\MapContainer; |
|
| 12 | 10 | use Ackintosh\Snidel\Task\Task; |
| 13 | -use Ackintosh\Snidel\Exception\SharedMemoryControlException; |
|
| 14 | 11 | |
| 15 | 12 | class Snidel |
| 16 | 13 | { |