1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-06 04:38:21 +01:00
Commit Graph

48 Commits

Author SHA1 Message Date
Aaron Piotrowski
da1e452e90 Fix bug in factory() 2016-01-14 18:08:39 -06:00
Aaron Piotrowski
c5e17d91c2 Make Environment an interface 2016-01-14 17:44:43 -06:00
Aaron Piotrowski
55f3e1aace Automatically push workers back into the queue 2016-01-14 17:05:31 -06:00
Aaron Piotrowski
1d9804995f Add queue and factory functions 2016-01-11 09:32:06 -06:00
Aaron Piotrowski
9a0f48b076 Add Strand; update some docblocks 2015-12-21 11:04:51 -06:00
Aaron Piotrowski
c08f6c9058 Keep track of times pulled in DefaultQueue; add more tests 2015-12-16 17:43:14 -06:00
Aaron Piotrowski
cbc5e4e75e Use null as defaults 2015-12-16 16:39:25 -06:00
Aaron Piotrowski
d73de0dd5d Update Pool and DefaultPool 2015-12-16 15:53:53 -06:00
Aaron Piotrowski
b286c96eb1 Add Queue and DefaultQueue 2015-12-16 15:53:39 -06:00
Aaron Piotrowski
f7fb6d6ecc Fix process workers; add process pool test 2015-12-16 11:16:21 -06:00
Aaron Piotrowski
8ff3399797 Resolve delayed in a finally block 2015-12-16 11:13:06 -06:00
Stephen Coakley
347132825e Gut lame factories 2015-12-11 23:28:44 -06:00
Stephen Coakley
957f4d7f4d Eliminate race conditions and update tests 2015-12-11 22:47:46 -06:00
Stephen Coakley
c7d2357c81 Fix shutdown errors while a task is running 2015-12-11 22:44:25 -06:00
Stephen Coakley
2d001c5bfe Handle rapidly enqueued tasks on workers 2015-12-11 18:15:15 -06:00
Aaron Piotrowski
b994cab086 Minor updates and tweaks 2015-12-05 01:09:42 -06:00
Aaron Piotrowski
5bca326354 Remove Interface suffixes 2015-12-04 23:50:32 -06:00
Aaron Piotrowski
92a26930ee Update for Icicle v0.9 2015-12-04 21:54:55 -06:00
Yves Chedemois
486a3e4c7a Pool $maxSize was ignored 2015-11-08 15:49:35 +01:00
Aaron Piotrowski
70718e6833 Rename process.php to worker.php 2015-10-19 18:07:20 -05:00
Aaron Piotrowski
c7de1ae603 Combine channel interfaces; remove executor classes 2015-10-18 01:54:09 -05:00
Aaron Piotrowski
8695d600fc Update examples with BlockingTask 2015-09-27 22:46:57 -05:00
Aaron Piotrowski
02b41543d0 Mark worker as shutdown immediately 2015-09-25 18:01:35 -05:00
Aaron Piotrowski
7def2ae5a3 No longer call kill() in destructors
This means forks/processes/threads must be properly shutdown or killed before a reference is lost or the thread will continue to run indefinitely. This was necessary because forks were automatically killing other processes or threads due to calling kill() in the destructor.
2015-09-14 18:59:33 -05:00
Aaron Piotrowski
9f551abbd1 Rename TaskError to TaskException 2015-09-11 12:39:51 -05:00
Aaron Piotrowski
fae5bdef5b Combine unsets 2015-09-11 10:38:13 -05:00
Aaron Piotrowski
6c71eb515f Fix TTL update in get() and set() 2015-09-11 00:18:37 -05:00
Aaron Piotrowski
fbd77068c9 Improve Environment 2015-09-10 18:37:34 -05:00
Aaron Piotrowski
ae267e64ac Add worker environment 2015-09-09 23:29:41 -05:00
Aaron Piotrowski
16f7172a61 Small worker and pool tweaks 2015-09-09 00:18:05 -05:00
Aaron Piotrowski
79f4adb26a Actually fix kill threads 2015-09-06 14:59:24 -05:00
Aaron Piotrowski
3f097bab4c Simplify pool implemenation 2015-09-05 12:50:53 -05:00
Aaron Piotrowski
5c7174385c Kill context in destruct instead of shutdown 2015-09-03 23:35:58 -05:00
Aaron Piotrowski
7a60d74937 Tweak worker pool; reject pending tasks on shutdown 2015-09-02 08:51:59 -05:00
Aaron Piotrowski
c5ff71f4b4 Remove arguments from TaskInterface::run() 2015-09-01 16:20:57 -05:00
coderstephen
789f6f5620 Add standard PoolInterface 2015-08-29 00:41:00 -05:00
coderstephen
95cbd8a365 Various improvements for worker pools 2015-08-28 20:30:53 -05:00
coderstephen
e80cd2818d Set global pool size directly 2015-08-28 12:04:04 -05:00
coderstephen
65f17be82e Call done() after creating coroutine 2015-08-28 00:20:32 -05:00
coderstephen
56b9360e0d Add some simple functions for global worker pool 2015-08-28 00:18:50 -05:00
coderstephen
6e317abe1b Add working worker pool with busy queue 2015-08-27 22:51:50 -05:00
Aaron Piotrowski
3dce08de42 Refine Process, context and worker updates 2015-08-27 13:06:39 -05:00
Aaron Piotrowski
0278fe7881 Work on workers, tasks, and contexts 2015-08-27 09:10:08 -05:00
Aaron Piotrowski
57d31d6b80 Create stream instances in process 2015-08-26 21:20:06 -05:00
Aaron Piotrowski
3c48042c30 Add Process 2015-08-26 21:19:57 -05:00
coderstephen
ad52ac9cf2 Remove ContextInterface & rename forks and threads 2015-08-22 16:27:44 -05:00
coderstephen
32dd57976c Proof-of-concept WorkerThread implementation 2015-08-21 22:41:38 -05:00
coderstephen
b60f47424a Bring in sample worker API from old branch 2015-08-14 12:25:07 -05:00