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

537 Commits

Author SHA1 Message Date
Aaron Piotrowski
e3b1cfd0cf
Allow custom binary path or locate binary 2017-12-05 18:21:39 -06:00
Aaron Piotrowski
cc07650c3e
Typo and copy/paste fixes 2017-12-04 11:49:31 -06:00
Aaron Piotrowski
341fd27094
Disable xdebug on travis 2017-12-04 11:49:05 -06:00
Niklas Keller
7056c2ed9d Define target platform and fix Travis 2017-12-02 13:54:56 +01:00
Niklas Keller
c869023446 Fix copy&paste mistake 2017-12-02 13:48:18 +01:00
Aaron Piotrowski
51b6421933
Simplify checking environment class name 2017-11-30 23:58:41 -06:00
Aaron Piotrowski
3f7f21875d
Exit if constructing channel fails. 2017-11-29 23:02:36 -06:00
Aaron Piotrowski
a1e62d6b20
Require amphp/process ^0.2 or ^0.3 2017-11-29 21:14:24 -06:00
Aaron Piotrowski
130732d4b5
Update examples 2017-11-29 20:17:49 -06:00
Aaron Piotrowski
5eb0a6a241
Update readme and license 2017-11-29 18:27:30 -06:00
Aaron Piotrowski
7bb49256be
Fix missed use statement 2017-11-29 17:58:00 -06:00
Aaron Piotrowski
d0a3001c6a
Fix a couple mistakes… 2017-11-29 15:07:00 -06:00
Aaron Piotrowski
599cbb8a82
Anonymous class → defined class 2017-11-29 15:05:15 -06:00
Aaron Piotrowski
3aff92fec4
Consolodate process and thread contexts into Context namespace 2017-11-29 15:01:32 -06:00
Aaron Piotrowski
33a5b89ff7
Refactor Parcels 2017-11-29 14:40:07 -06:00
Aaron Piotrowski
996654920d
Update for export of mutex and semaphore to amphp/sync 2017-11-29 14:12:28 -06:00
Aaron Piotrowski
48bbf75097
Locate autoloader file in thread 2017-11-25 09:04:00 -06:00
Aaron Piotrowski
c7e8b12f70
Require amphp/process 0.3 2017-11-25 08:58:38 -06:00
Aaron Piotrowski
148b619a64
Test on 7.2 2017-11-24 19:21:32 -06:00
Aaron Piotrowski
e700395ac5 Better fix for #27
Assertions would crash the worker, this will return as a failed task.
2017-11-22 21:38:11 -06:00
Aaron Piotrowski
689de9a28b
Assert autoload of Task class did not fail
Fixes #27.
2017-11-22 20:42:56 -06:00
Cyril Panshine
bcfb30fa35 Improve worker-pool example (#30) 2017-11-20 19:21:53 +01:00
Aaron Piotrowski
dbd3403087
Quiet style fixer 2017-11-10 11:35:47 -06:00
Aaron Piotrowski
26e826a05f
Add code to exception message, addresses #21
Code is no longer passed to exception constructor in parent context.
2017-11-10 11:32:15 -06:00
Aaron Piotrowski
0e71b18197
Faster freeing of task memory 2017-11-10 10:32:01 -06:00
Aaron Piotrowski
aaee76e3da
Rename Threading namespace to Thread 2017-11-10 10:00:04 -06:00
Aaron Piotrowski
f48066eb1b
Drop Fork along with Process and Strand interfaces
Forking is just too dangerous for virtually no gain over Process. Context now extends Sync\Channel.
2017-11-10 09:59:23 -06:00
Aaron Piotrowski
0ef74413af
Fix updating TTL; add more environment tests 2017-07-29 10:29:16 -05:00
Aaron Piotrowski
84b611e780
Move ExitResult classes out of Internal namespace 2017-07-28 17:34:24 -05:00
Aaron Piotrowski
a027ef930b
Test for AMP_WORKER to be defined 2017-07-27 23:49:43 -05:00
Aaron Piotrowski
0df4fa9cce
Add internal annotations 2017-07-27 23:49:20 -05:00
Aaron Piotrowski
3d5e1c6e6f
Refactor BasicEnvironment
Remove \Countable, add tests.
2017-07-27 23:47:36 -05:00
Aaron Piotrowski
cab8bbe8f6
Add ability to set Environment class name 2017-07-27 23:31:43 -05:00
Aaron Piotrowski
faf1555b9c
Move TaskRunner out of Internal namespace 2017-07-26 23:32:19 -05:00
Pieter Hordijk
8e6def047e Fixes the constant used
`\PHP_BINARY` will never give phpdbg, but always the full path to the
binary. You meant to use `\PHP_SAPI` here too just like on the previous
line.
2017-07-26 20:16:47 +02:00
Aaron Piotrowski
6ed128f3e7
Quite style fixer 2017-07-20 23:58:13 -05:00
Aaron Piotrowski
affe305e93
Use null for new scope 2017-07-20 23:36:53 -05:00
Aaron Piotrowski
1a6896b047
Exit thread immediately if parent context died while starting 2017-07-20 23:36:28 -05:00
Aaron Piotrowski
2aa5692fdb
Use pthreads only on 7.2 2017-07-20 23:32:58 -05:00
Aaron Piotrowski
f716981c95
Exit thread immediately if killed while loading autoloader 2017-07-19 00:14:16 -05:00
Aaron Piotrowski
58ce0df037
Remove unnecessary try/catch
execute() will never throw, so no reason to wrap in try/catch.
2017-07-19 00:08:55 -05:00
Aaron Piotrowski
bba0610ede
Use call() to execute context function 2017-07-19 00:07:04 -05:00
Aaron Piotrowski
25b9a2a75c Update README.md 2017-07-17 22:59:56 -05:00
Aaron Piotrowski
d4a2c311ca
Do not start global pool until used 2017-07-17 22:54:14 -05:00
Aaron Piotrowski
ff146bc8ba
Reduce default pool size 2017-07-17 22:53:19 -05:00
Aaron Piotrowski
9d330836cd
Define AMP_WORKER constant in worker 2017-07-17 22:49:17 -05:00
Aaron Piotrowski
c22d2838c7
Read more data if channel prefix is invalid 2017-06-28 23:59:24 -05:00
Aaron Piotrowski
005194c2fc
Yield worker result send and exit if it fails 2017-06-28 23:58:56 -05:00
Aaron Piotrowski
876a7d4ac9 Merge pull request #20 from amphp/issue-19
Allow mixed for exception codes, because PDO
2017-06-28 23:54:34 -05:00
Niklas Keller
77de09894f Allow mixed for exception codes, because PDO 2017-06-28 12:41:59 +02:00