1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-05 20:28:18 +01:00
Commit Graph

23 Commits

Author SHA1 Message Date
Aaron Piotrowski
8ecfe3df45 Replace acquire() method with synchronized() method 2015-08-25 09:53:17 -05:00
Aaron Piotrowski
afbed54754 Use constant for latency timeout 2015-08-25 09:39:58 -05:00
Aaron Piotrowski
b1427879d8 Pass streams to Channel constructor 2015-08-25 09:37:22 -05:00
Aaron Piotrowski
0e9b8cca4a Do not call fclose() in thread; separate read/write streams; addresses #4 2015-08-24 19:35:42 -05:00
coderstephen
ba3ac988b3 Merge changes from master 2015-08-24 10:47:36 -05:00
coderstephen
ad52ac9cf2 Remove ContextInterface & rename forks and threads 2015-08-22 16:27:44 -05:00
coderstephen
fed8de64aa Passing autoloader to child no longer necessary 2015-08-20 16:21:09 -05:00
coderstephen
dd38cd1142 Autoload behaves consistently with pthreads 2.0.11 2015-08-20 14:40:44 -05:00
coderstephen
d90ae70c22 Inherit all from parent and handle loader in child 2015-08-19 10:59:55 -05:00
Aaron Piotrowski
8c09c16204 Refine channel implementation 2015-08-18 19:12:58 -05:00
Aaron Piotrowski
36725728aa Add locks to thread context 2015-08-18 10:12:06 -05:00
Aaron Piotrowski
feb620fdea Refactor threading / simplify contexts 2015-08-10 17:38:58 -05:00
Aaron Piotrowski
1b77f37693 Add executor contexts, bind to executors instead of channel 2015-08-07 15:30:14 -05:00
Aaron Piotrowski
078f915081 Rebind $this to channel 2015-08-07 00:07:53 -05:00
Aaron Piotrowski
dc3cd5155e Add ability to pass arguments to context function 2015-08-06 23:25:04 -05:00
Aaron Piotrowski
399764f7b9 Remove file_exists() check 2015-08-06 21:51:45 -05:00
Aaron Piotrowski
c52ec19a38 Refactor contexts and exiting 2015-08-06 18:59:25 -05:00
coderstephen
1ece940057 Fix channel coroutines to yield correct values 2015-08-05 13:30:05 -05:00
coderstephen
ff413c904c First working, async threads using channels for messages
Channel was changed to return resources on creation.

Also, much better setting up synchronization at the beginning of a new
thread.
2015-08-05 02:48:43 -05:00
coderstephen
92432ff58b Experimental closure-based contexts 2015-07-26 17:53:00 -05:00
coderstephen
6442bb9191 Don't recursively create thread instances 2015-07-15 12:36:32 -05:00
coderstephen
3c4448866f Run given ThreadContext::run() inside thread 2015-07-14 17:15:10 -05:00
coderstephen
18b7c68f65 Experimental pthread context 2015-07-13 17:30:59 -05:00