Back to project page shareplay.
The source code is released under:
Copyright (c) 2014, Benjamin Damer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project shareplay listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.afqa123.shareplay.common; /*from w ww.j a v a2 s . c om*/ public abstract class StoppableThread extends Thread { private volatile boolean stop = false; protected boolean isStopped() { return stop; } public synchronized void requestStop() { stop = true; } }