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 |
|
Bob Weinand
|
be5dc4efdd
|
Merge pull request #18 from tommy-muehle/master
Fix typo in autoload-dev to load required class
|
2017-06-26 20:28:25 +02:00 |
|
Tommy Muehle
|
4ba600cd68
|
Fix typo in autoload-dev to load required class
|
2017-06-26 20:14:17 +02:00 |
|
Niklas Keller
|
6b2f5cd3fa
|
Bypass shell on Windows to fix paths with spaces
|
2017-06-24 00:29:34 +02:00 |
|
Niklas Keller
|
acd8b59d53
|
Apply escapeshellarg on PHP_BINARY so it works on paths with spaces
This is especially important on Windows with PHP being in C:\Program Files\...
|
2017-06-24 00:12:12 +02:00 |
|
Niklas Keller
|
8ecfed57bf
|
Unreference stderr reading, so it doesn't keep the loop running
|
2017-06-23 16:44:17 +02:00 |
|
Niklas Keller
|
8c726c67b6
|
Remove -- when invoking the PHP CLI binary
|
2017-06-21 18:20:06 +02:00 |
|
Niklas Keller
|
84cd33a503
|
Pipe stderr of worker processes to the parents stderr
|
2017-06-21 18:20:06 +02:00 |
|
Niklas Keller
|
ba4e101314
|
Use argseparator (--) also for PHP CLI
|
2017-06-21 17:30:26 +02:00 |
|
Niklas Keller
|
d3ccd57d23
|
Never display errors, log them instead
|
2017-06-21 15:30:52 +02:00 |
|
Aaron Piotrowski
|
29a1d1bb8c
|
Maintain task order for fast-finishing/blocking tasks
|
2017-06-19 22:14:19 -05:00 |
|
Aaron Piotrowski
|
998a255c83
|
Quiet CS fixer… remove used import
|
2017-06-19 11:24:39 -05:00 |
|
Aaron Piotrowski
|
89a6f636c7
|
Exit when parent context dies
Using return may allow a busy loop to keep running.
|
2017-06-19 11:15:41 -05:00 |
|
Aaron Piotrowski
|
b536f8da56
|
Send large buffer instead of delaying
|
2017-06-19 11:14:38 -05:00 |
|
Niklas Keller
|
4f7da94194
|
Use delay instead of checking the resolution value for sending to exited context
|
2017-06-19 08:25:41 +02:00 |
|
Aaron Piotrowski
|
20bb51e926
|
Improve worker error reporting
|
2017-06-17 23:57:12 -05:00 |
|
Niklas Keller
|
4546ef8b1d
|
Skip cli_set_process_title inside phpdbg
|
2017-06-17 20:46:22 +02:00 |
|
Niklas Keller
|
39664d42d0
|
Fix binary when running via phpdbg
|
2017-06-17 19:27:16 +02:00 |
|
Niklas Keller
|
a6bca0f085
|
Fix code style
|
2017-06-17 18:31:35 +02:00 |
|
Niklas Keller
|
10eb45e75c
|
Fix php-cs-fixer config
|
2017-06-17 18:23:28 +02:00 |
|
Niklas Keller
|
f75742e788
|
Fix Travis build for PHP 7.2
|
2017-06-17 18:18:29 +02:00 |
|
Aaron Piotrowski
|
be0d786e14
|
example → examples
|
2017-06-16 00:04:10 -05:00 |
|
Aaron Piotrowski
|
936f232172
|
Used tagged process version
|
2017-06-16 00:02:20 -05:00 |
|
Aaron Piotrowski
|
820b6897ed
|
Update for process changes
|
2017-06-15 23:46:15 -05:00 |
|
Aaron Piotrowski
|
f9be01adb5
|
Use parser package; refactor ChannelledSocket
|
2017-06-07 23:33:13 -05:00 |
|