1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-30 04:39:01 +01:00
Commit Graph

35 Commits

Author SHA1 Message Date
6afbe00dd6
Custom php.ini for webserver 2020-02-11 23:52:07 +01:00
a5d4270acb
Better tests 2020-02-11 23:41:35 +01:00
c851a13dbf
Implement web forking 2020-02-11 23:18:06 +01:00
Aaron Piotrowski
82ade8b128
Hide testing bool from public API 2020-02-11 10:38:30 -06:00
4d783f5e59
Skip FIFO tests on windows 2020-02-11 15:00:02 +01:00
59dfc74967
Merge branch 'master' of github.com:amphp/parallel into fifo 2020-02-11 14:45:32 +01:00
Aaron Piotrowski
dfb7b0149b
Add test delay to allow process to crash
Sending to fast can succeed before process crashes.
2020-02-10 17:40:34 -06:00
76853f0b78
Implement FIFO process hub 2020-02-10 23:33:17 +01:00
Aaron Piotrowski
4ed05f6aac
Improve error handling when sending and receiving 2020-02-10 12:29:27 -06:00
Aaron Piotrowski
24213ee911
Upgrade to PHPUnit 7 or 8 2019-08-27 12:17:41 -05:00
Aaron Piotrowski
7303b8dcf3
Fix exiting parallel context 2019-04-30 14:47:37 -05:00
Aaron Piotrowski
740696275c
Add a couple tests and ignore some blocks only executed in threads 2019-03-08 13:37:52 -06:00
Aaron Piotrowski
f919371aee
Don't swallow SynchronizationError in ContextException 2019-02-18 09:38:42 -06:00
Aaron Piotrowski
f2e5224856
Unite Process and Parallel context interfaces
Allows scripts to be written for either context.
2019-02-17 23:50:41 -06:00
Aaron Piotrowski
c60fc63cb6
Add timer in parallel context for kill breakpoint 2019-02-14 01:10:40 -06:00
Aaron Piotrowski
2d35051391
Update for krakjoe/parallel changes 2019-02-14 00:56:27 -06:00
Aaron Piotrowski
410c88e859
Serialize function arguments
Maybe this is a horrible idea, but we serialize everything else, so why not?
2019-02-14 00:34:45 -06:00
Aaron Piotrowski
ecaf0a854b
Add support for krakjoe/parallel 2019-02-14 00:34:45 -06:00
Aaron Piotrowski
398989d41d
Move test scripts to Fixtures directory 2019-02-13 18:19:46 -06:00
Aaron Piotrowski
c77843fa77
Catch parse error and provide better error message 2019-02-13 16:36:45 -06:00
Aaron Piotrowski
80c07011d6
Fix failing Process::join()
If the process is killed while joining, an exception was thrown from Process::kill().
2019-01-09 10:25:30 -06:00
Aaron Piotrowski
a5c08a2041
Pause before exiting thread in test
Not sure why exiting immediately allows the write to succeed.
2018-10-24 11:13:42 -05:00
Aaron Piotrowski
b562925e6d
Do not yield context start 2018-10-22 14:46:47 -05:00
Aaron Piotrowski
b654463339
Fix code style 2018-10-07 09:50:45 -05:00
Aaron Piotrowski
cb5ea736d4
Improve process IPC
Processes now use a shared server socket instead of stdin and stdout for IPC.
2018-10-07 09:31:35 -05:00
Niklas Keller
b4cdb95f58 Fix test after error message change 2018-03-21 13:56:19 +01:00
Aaron Piotrowski
cdf84999aa
Update context test 2017-12-26 23:16:30 -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
2a09f82f39
Add more process tests; exclude scripts from coverage 2017-12-13 13:56:11 -06:00
Aaron Piotrowski
4d99a9d968
spawn → run 2017-12-10 17:01:10 -06:00
Aaron Piotrowski
4d4841f449
Refactor Process to make writing child processes simple 2017-12-10 16:39:49 -06:00
Aaron Piotrowski
4426686e54
Reorganize 2017-12-07 21:26:55 -06:00
Aaron Piotrowski
e3b1cfd0cf
Allow custom binary path or locate binary 2017-12-05 18:21:39 -06:00
Aaron Piotrowski
d0a3001c6a
Fix a couple mistakes… 2017-11-29 15:07:00 -06:00
Aaron Piotrowski
3aff92fec4
Consolodate process and thread contexts into Context namespace 2017-11-29 15:01:32 -06:00