1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-26 20:34:40 +01:00
Commit Graph

549 Commits

Author SHA1 Message Date
Niklas Keller
7e1ef80d80 Use kill() instead of shutdown() in DefaultPool::__destruct
This prevents a watcher being activated on __destruct().
2018-07-29 18:12:51 +02:00
Niklas Keller
6a3753ec8a Add @throws tags 2018-07-27 19:31:29 +02:00
Niklas Keller
040a4cb4ea Fix coverage on Travis 2018-07-26 20:33:07 +02:00
Niklas Keller
fdd13e37a7 Fix code style 2018-07-26 20:29:42 +02:00
Niklas Keller
67a57adf67 Remove Loop::run() 2018-07-26 20:14:43 +02:00
Niklas Keller
ee494d6cc6 Fix code style 2018-07-26 20:12:30 +02:00
Niklas Keller
310c64ad7a Disable pthreads on Travis 2018-07-26 19:58:54 +02:00
Niklas Keller
f1d3a0958f Drop promises in favor of ext-async 2018-07-25 22:46:40 +02:00
Niklas Keller
d309d97fdb Ignore docs/asset on export
Relates to amphp/amp#227
2018-05-16 22:24:45 +02:00
Niklas Keller
72d0391adf Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2018-05-16 16:15:52 +02:00
Gabriel Caruso
02a3b84f8f Use dedicated PHPUnit assertions 2018-03-21 21:54:05 +01:00
Niklas Keller
7326946884 Symlink PHARs if they don't have a .phar extension 2018-03-21 15:37:51 +01:00
Niklas Keller
b4cdb95f58 Fix test after error message change 2018-03-21 13:56:19 +01:00
Niklas Keller
c1114188b6 Improve error messages 2018-03-21 13:49:52 +01:00
Aaron Piotrowski
ed3662172d
Added signal() and getPid() methods to Process 2018-03-14 18:51:13 -05:00
Markus Staab
dbdc7895ac Fixed typo (#42) 2018-02-27 23:26:51 +01:00
Markus Staab
1d6330ffc7 Fixed typo (#41) 2018-02-27 20:02:22 +01:00
Chris Wright
11a3e27db5 Escape script path in Process command (#38) 2018-01-31 18:31:36 +01:00
Aaron Piotrowski
7ef75bd5db
Reduce test iterations
pthreads seems to be having trouble with such quick generation of threads. Will look into what may be happening here… but the number of iterations isn't terribly important for the modified test.
2018-01-22 17:59:13 -06:00
Aaron Piotrowski
4cbdddd052
Fix code style 2018-01-22 17:36:50 -06:00
Syed Irfaq R. ⚡️
d2b9c03318 Fixes #35 (#36) 2018-01-22 16:15:09 -06:00
Aaron Piotrowski
abaa1609fd
Improve error message for invalid channel data 2018-01-22 16:12:55 -06:00
Niklas Keller
d16da4611e Fix usage inside PHARs 2018-01-22 15:03:31 +01:00
Aaron Piotrowski
0d40e6da98
Do not fclose socket or null thread ref; restore GC test 2017-12-27 12:36:28 -06:00
Aaron Piotrowski
e6a5de671a
Move GC test to ProcessPoolTest 2017-12-27 12:17:35 -06:00
Aaron Piotrowski
0a474e18c0
Avoid cyclic references in threads 2017-12-26 23:16:44 -06:00
Aaron Piotrowski
cdf84999aa
Update context test 2017-12-26 23:16:30 -06:00
Aaron Piotrowski
feb54951cc Simplify worker implementation
Most of the complexity in AbstractWorker was to support out-of-order task execution.
2017-12-26 10:02:43 -06:00
Niklas Keller
8863251087 Avoid phpdbg + pthreads on Travis 2017-12-26 10:02:43 -06:00
Niklas Keller
ac4c7939f0 Add test for proper clean up
If there are cyclic references in the future again, this test will fail.
2017-12-26 10:02:43 -06:00
Niklas Keller
cfd33799d7 Avoid cyclic references, fixes amphp/parallel-functions#5 2017-12-26 10:02:43 -06:00
Niklas Keller
074e2f215f Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2017-12-14 19:16:41 +01:00
Aaron Piotrowski
c545be1dc5
More tests 2017-12-13 23:06:38 -06:00
Aaron Piotrowski
21b1a29748
Shorten task failure messages 2017-12-13 23:03:42 -06:00
Aaron Piotrowski
b9a8108540
Add ability to specify environment class name when creating factory 2017-12-13 22:18:12 -06:00
Aaron Piotrowski
fc4c2a07b7
Shorten job IDs 2017-12-13 21:28:08 -06:00
Aaron Piotrowski
f4411805d6
Fail task with SerializationException; cancel worker if sending otherwise fails 2017-12-13 20:56:28 -06:00
Aaron Piotrowski
9e7d1e0801
Throw if sending task fails 2017-12-13 16:29:44 -06:00
Aaron Piotrowski
acdfa66b12
Rename test file with parse error so php-cs-fixer ignores it 2017-12-13 14:21:37 -06:00
Aaron Piotrowski
312aecf1ff
Remove Worker::start()
The context can automatically be started when a job is enqueued.
2017-12-13 14:14:31 -06:00
Aaron Piotrowski
2a09f82f39
Add more process tests; exclude scripts from coverage 2017-12-13 13:56:11 -06:00
Aaron Piotrowski
d89c9e3dee
Catch serialization failure in process runner 2017-12-13 10:31:43 -06:00
Aaron Piotrowski
ff35e2fd8d
Add SharedMemoryParcel example 2017-12-12 23:38:23 -06:00
Aaron Piotrowski
cb87b1cd9a
Use default sizes as default values 2017-12-12 21:59:38 -06:00
Aaron Piotrowski
91314f13f6
Shorten message from uncaught context exceptions 2017-12-12 21:08:59 -06:00
Aaron Piotrowski
8decdceb5d
Reorder Process constructor params
Shifted $binary to the end as it should rarely be needed.
2017-12-12 21:06:11 -06:00
Aaron Piotrowski
4d99a9d968
spawn → run 2017-12-10 17:01:10 -06:00
Aaron Piotrowski
852f580915
Remove $this magic from Thread callback
Channel is now passed as the first argument.
2017-12-10 16:53:51 -06:00
Aaron Piotrowski
4d4841f449
Refactor Process to make writing child processes simple 2017-12-10 16:39:49 -06:00
Aaron Piotrowski
cb15de11ff
Catch StreamExceptions thrown when reading
try/catch should have been around call to read().
2017-12-10 13:54:11 -06:00