Created
August 17, 2012 22:23
-
-
Save thecodedrift/3383249 to your computer and use it in GitHub Desktop.
Snaptest and PHP Isolation Testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Dispatcher { | |
| public function dispatch($call, $key_stack, $options = array()) { | |
| // ... set up an array for child processes | |
| // ... dispatch, collect round robin | |
| // ... got a complete response from a child | |
| call_user_func_array($options['thread_complete_callback'], array($results)); | |
| // ... continue until all dispatches are made for $key_stack | |
| // ... dispatch complete callback | |
| return call_user_func_array($options['dispatch_complete_callback'], array($results)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment