1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-11 16:49:51 +01:00
Commit Graph

196 Commits

Author SHA1 Message Date
Aaron Piotrowski
b994cab086 Minor updates and tweaks 2015-12-05 01:09:42 -06:00
Aaron Piotrowski
fe9a213431 Add null bytes as validity check 2015-12-05 00:54:15 -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
Stephen Coakley
a392132299 Add tests and fix process killing not detaching 2015-11-11 02:59:22 -06:00
Stephen Coakley
8f22150160 Add methods for checking fork/thread availability and unsupported checks 2015-11-11 01:07:59 -06:00
Yves Chedemois
486a3e4c7a Pool $maxSize was ignored 2015-11-08 15:49:35 +01:00
Aaron Piotrowski
a71abaf61d Fix issue with error handler
Using yield within the try block caused the error handler to persist through the next loop iteration, catching any error.
2015-10-28 18:50:01 -05:00
Aaron Piotrowski
c25608c893 Refactor ContextInterface and add ProcessInterface 2015-10-20 00:06:43 -05:00
Aaron Piotrowski
80d5c4cd08 Refactor reading from code stream 2015-10-19 21:44:42 -05:00
Aaron Piotrowski
70718e6833 Rename process.php to worker.php 2015-10-19 18:07:20 -05:00
Aaron Piotrowski
7080310afa Pass parcel value to synchronized()
Remove wrap() method from interface. Wrapped value should be returned from the synchronized() callback function or can be passed by-reference to the callback function.
2015-10-18 02:12:46 -05:00
Aaron Piotrowski
c7de1ae603 Combine channel interfaces; remove executor classes 2015-10-18 01:54:09 -05:00
Stephen Coakley
8d9e6200a7 Documentation fixes 2015-10-16 23:32:01 -05:00
Aaron Piotrowski
ef5ab2f575 Update to icicleio/stream v0.4.0 2015-10-16 18:20:20 -05:00
Aaron Piotrowski
1cf7dd62b9 Better Windows support 2015-09-28 21:03:55 -05:00
Aaron Piotrowski
8695d600fc Update examples with BlockingTask 2015-09-27 22:46:57 -05:00
Aaron Piotrowski
8625e5968e Fix bug reading long data from channel 2015-09-27 22:34:50 -05:00
Stephen Coakley
d3038f9597 Fix FileMutex when acquiring multiple times
Also fix ParcelTest.
2015-09-26 00:50:25 -05:00
Aaron Piotrowski
02b41543d0 Mark worker as shutdown immediately 2015-09-25 18:01:35 -05:00
Aaron Piotrowski
a236585aae Add missed owner property; other minor fixes 2015-09-19 21:34:41 -05:00
Aaron Piotrowski
4eb815ea45 Automatically kill on destruct again 2015-09-18 22:20:35 -05:00
Aaron Piotrowski
4a804536f2 Refactor process to unreference exit code stream 2015-09-18 15:07:59 -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
41ec732092 Fix hang when killing a process 2015-09-11 14:47:54 -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
88c6a79f7e Null thread reference at shutdown 2015-09-08 12:55:29 -05:00
Aaron Piotrowski
79f4adb26a Actually fix kill threads 2015-09-06 14:59:24 -05:00
Aaron Piotrowski
b163207cea Fix killing a thread; avoid issues with signals 2015-09-05 12:52:56 -05:00
Aaron Piotrowski
3f097bab4c Simplify pool implemenation 2015-09-05 12:50:53 -05:00
Aaron Piotrowski
ff44afde6d Remove Channel::createSocketPair(); refactor Thread 2015-09-04 16:22:41 -05:00
Aaron Piotrowski
5c7174385c Kill context in destruct instead of shutdown 2015-09-03 23:35:58 -05:00
Aaron Piotrowski
3071dee6c8 Improve semaphore tests 2015-09-03 23:23:12 -05:00
Aaron Piotrowski
348f7c7461 Add getSize() to SemaphoreInterface; better cloning support 2015-09-03 18:31:29 -05:00
Aaron Piotrowski
d47e56a840 Update parcels 2015-09-03 18:11:58 -05:00
Aaron Piotrowski
3c93d2c383 Update tests and coverage annotations; fix some docs 2015-09-03 18:10:19 -05:00
Stephen Coakley
7e7639442f Keep track of PosixSemaphore size & handle cloning 2015-09-03 17:20:58 -05:00
Stephen Coakley
3e962d3a0e Add some docs for parcel behavior 2015-09-03 17:07:20 -05:00
Aaron Piotrowski
a281e34077 Update Channel and add more tests 2015-09-02 18:29:48 -05:00
Aaron Piotrowski
c32e0ff9bf Fix potential fclose error when joining or killing thread 2015-09-02 17:24:01 -05:00
Aaron Piotrowski
94a80dc530 Remove synchronized() from threads 2015-09-02 17:23:22 -05:00
Aaron Piotrowski
45a54f3f78 Update Thread; add more tests 2015-09-02 16:34:42 -05:00
Aaron Piotrowski
7a60d74937 Tweak worker pool; reject pending tasks on shutdown 2015-09-02 08:51:59 -05:00
Aaron Piotrowski
c0ed3e3c05 Fix thread reporting being open after kill 2015-09-01 21:10:58 -05:00
Aaron Piotrowski
172c64c583 Fix threaded mutex and semaphore 2015-09-01 20:58:22 -05:00