|
bde5900826
|
Merge branch 'fifo'
|
2020-02-11 17:57:01 +01:00 |
|
Aaron Piotrowski
|
82ade8b128
|
Hide testing bool from public API
|
2020-02-11 10:38:30 -06:00 |
|
|
050748c10b
|
Better comments, bigger max length for prefix
|
2020-02-11 15:14:21 +01:00 |
|
|
60e276fa8e
|
Merge branch 'fifo'
|
2020-02-11 15:04:13 +01: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 |
|
|
6f78af6d09
|
Begin adding web forking
|
2020-02-11 14:45:11 +01:00 |
|
Aaron Piotrowski
|
09ab72333b
|
Increase test timeout
Parallel threads only check for kills every 250 ms, so this can fail.
|
2020-02-10 17:40:52 -06: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 |
|
Aaron Piotrowski
|
fc7dafe7a5
|
Update travis build
|
2020-02-10 17:30:50 -06:00 |
|
Aaron Piotrowski
|
0597620f56
|
Serialize exception trace arguments in child processes and threads
|
2020-02-10 17:30:09 -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
|
72dd3a495f
|
Deprecate classes using ext-pthreads
See https://github.com/krakjoe/pthreads/issues/929
|
2020-02-04 13:42:47 -06:00 |
|
Jáchym Toušek
|
d6f29249db
|
Revert #91 (#94)
|
2020-02-04 13:36:21 -06:00 |
|
Jáchym Toušek
|
e9326379f3
|
Fix Environment (#92)
|
2020-02-04 10:10:02 -06:00 |
|
Jáchym Toušek
|
ca636dcea0
|
Fix documentation (#91)
|
2020-02-04 10:09:24 -06:00 |
|
Jáchym Toušek
|
7d72a24a85
|
Fix documentation (#90)
|
2020-02-04 10:08:51 -06:00 |
|
Niklas Keller
|
71be8d1d72
|
Ignore docs/Gemfile.lock
|
2019-11-03 15:11:37 +01:00 |
|
Aaron Piotrowski
|
2b418eb71d
|
Improve error message for non-autoloadable callables
Fixes #83.
|
2019-08-27 18:28:31 -05:00 |
|
Aaron Piotrowski
|
7602064f6c
|
Update travis build
|
2019-08-27 18:15:06 -05:00 |
|
Aaron Piotrowski
|
17b6b6272f
|
Add void types were able
|
2019-08-27 18:14:56 -05:00 |
|
Aaron Piotrowski
|
24213ee911
|
Upgrade to PHPUnit 7 or 8
|
2019-08-27 12:17:41 -05:00 |
|
|
c73c6d0a77
|
Cleanup temporary files (#82)
Modified by @trowski.
|
2019-08-27 10:04:40 -05:00 |
|
Niklas Keller
|
53aa422eaf
|
Remove unused import
|
2019-05-11 19:13:47 +02:00 |
|
Aaron Piotrowski
|
d70a82d04c
|
Remove static binding from require closure
|
2019-05-11 09:48:24 -05:00 |
|
Aaron Piotrowski
|
1acd54e848
|
Use closure within parallel runner
|
2019-05-01 13:30:57 -05:00 |
|
Aaron Piotrowski
|
2d02d964f4
|
Use Events::setBlocking() added to parallel extension
|
2019-05-01 12:08:52 -05:00 |
|
Aaron Piotrowski
|
7303b8dcf3
|
Fix exiting parallel context
|
2019-04-30 14:47:37 -05:00 |
|
Aaron Piotrowski
|
3ec7f33142
|
Fix namespace
|
2019-04-29 10:34:57 -05:00 |
|
Aaron Piotrowski
|
66ca530f0d
|
Move static parallel extension properties into internal class
|
2019-04-29 10:19:32 -05:00 |
|
Aaron Piotrowski
|
d6e7fed763
|
Explicit casts for event name
|
2019-04-24 10:42:45 -05:00 |
|
Aaron Piotrowski
|
108b6434ef
|
Allow time when process channel closes unexpectedly
|
2019-04-24 10:17:54 -05:00 |
|
Aaron Piotrowski
|
b6acc4f386
|
Update for latest parallel extension changes
|
2019-04-24 10:05:42 -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
|
c1f6b62799
|
Check if watcher has already been cancelled
This seems to only happen in 7.1 for some reason… will perhaps need to dig further into why.
|
2019-03-08 11:26:48 -06:00 |
|
Aaron Piotrowski
|
2191d1145b
|
Cancel watcher if no threads remain
|
2019-03-08 11:20:47 -06:00 |
|
Aaron Piotrowski
|
3cce945d93
|
Note method to retreive stacktrace in exception messages
|
2019-03-02 09:19:00 -06:00 |
|
Aaron Piotrowski
|
7c8f936618
|
Autoloading → Bootstrap
Calling the file a boostrap makes more sense as more than defining an autoloader can be done in the file.
|
2019-02-22 16:10:30 -06:00 |
|
Aaron Piotrowski
|
7c8756c3a5
|
Add custom autoloader option for workers
Fixes #55 and #71.
|
2019-02-20 17:39:39 -06:00 |
|
Aaron Piotrowski
|
738f50afe7
|
Define AMP_CONTEXT_ID in contexts
Uses PID in processes or a sequential ID for threads.
|
2019-02-20 17:31:22 -06:00 |
|
Aaron Piotrowski
|
1150428281
|
Better handling of unserialization errors
Still fails even if E_NOTICE errors are not being reported.
|
2019-02-20 17:22:48 -06:00 |
|
Aaron Piotrowski
|
a0575b4930
|
Fix handling of invalid connections
Channel::receive() can throw ChannelException and SerializationException, so just catch everything here.
|
2019-02-18 18:44:30 -06:00 |
|
Aaron Piotrowski
|
a9e22e9ef8
|
Add getId() method; don't dup futures array
|
2019-02-18 18:43:11 -06:00 |
|
Aaron Piotrowski
|
b8b73cdea3
|
Use Future::select()
|
2019-02-18 13:05:43 -06:00 |
|
Aaron Piotrowski
|
36d3a3d963
|
Periodically check Future to see if thread crashed
|
2019-02-18 11:48:13 -06:00 |
|
Aaron Piotrowski
|
7fca17d7ef
|
Explicitly close channel when thread finishes
|
2019-02-18 10:32:16 -06:00 |
|
Aaron Piotrowski
|
5deeb81501
|
Skip parallel worker tests if extension is not installed
|
2019-02-18 10:27:07 -06:00 |
|
Aaron Piotrowski
|
7ee5a0aec7
|
phpdbg is crashing on travis
|
2019-02-18 10:01:29 -06:00 |
|
Aaron Piotrowski
|
8e19da949f
|
Remove unused imports
|
2019-02-18 09:43:14 -06:00 |
|