Revision 11c187c0
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/main/InternalMaster.java | ||
---|---|---|
32 | 32 |
*/ |
33 | 33 |
public class InternalMaster |
34 | 34 |
{ |
35 |
/** |
|
36 |
* Not part of public API, do not document (public only because has to be used in PostprocessEffects) |
|
37 |
* |
|
38 |
* @y.exclude |
|
39 |
*/ |
|
35 | 40 |
public interface Slave |
36 | 41 |
{ |
37 | 42 |
void doWork(); |
src/main/java/org/distorted/library/main/InternalStackFrame.java | ||
---|---|---|
26 | 26 |
import java.util.LinkedList; |
27 | 27 |
|
28 | 28 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
29 |
|
|
29 |
/** |
|
30 |
* Implements a single 'frame' of all varaibles needed to remember the internal state of the library. |
|
31 |
* Such a frame must be remembered in a list whenever current Activity using the library fires off |
|
32 |
* another Activity which also wants to use the library. When that happens, we create a new 'frame', |
|
33 |
* remember the old one. When the second Activity ends and we come back to the first, we destroy the |
|
34 |
* second frame and recall the first. |
|
35 |
* <p> |
|
36 |
* Not part of public API, do not document |
|
37 |
* |
|
38 |
* @y.exclude |
|
39 |
*/ |
|
30 | 40 |
public class InternalStackFrame |
31 | 41 |
{ |
32 | 42 |
private static class Job |
src/main/java/org/distorted/library/main/InternalStackFrameList.java | ||
---|---|---|
26 | 26 |
import java.util.Set; |
27 | 27 |
|
28 | 28 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
29 |
|
|
29 |
/** |
|
30 |
* Implements a List of Frames (see InternalStackFrame) |
|
31 |
* <p> |
|
32 |
* Not part of public API, do not document |
|
33 |
* |
|
34 |
* @y.exclude |
|
35 |
*/ |
|
30 | 36 |
public class InternalStackFrameList |
31 | 37 |
{ |
32 | 38 |
private final static Object mLock = new Object(); |
Also available in: Unified diff
Correct comments; hide stuff from Javadoc.