Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* SOURCE
- http://download.oracle.com/javase/tutorial/essential/concurrency/forkjoin.html
- */
- protected static int sThreshold = 100000;
- protected void compute() {
- if (mLength < sThreshold) {
- computeDirectly();
- return;
- }
- int split = mLength / 2;
- invokeAll(new ForkBlur(mSource, mStart, split, mDestination),
- new ForkBlur(mSource, mStart + split, mLength - split, mDestination));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement