你cancel时带的参数是true还是false?
解决方案 »
- 请教如何实现调用自带播放器播放某音乐文件10次
- 关于SQLite的菜鸟级提问~
- 在弹出menu时,如何让menu以外的控件(popupwindow) 获取焦点响应点击事件
- 在资源文件中用同名图片换掉了一张图,结果所以xml文件报错
- ubuntu11.04编译android2.3错误
- 关于蓝牙的问题
- NDK_DEBUG=1 情况下 无法生成.so文件...求解救...
- canvas.getwidth的值不是view.setlayoutparams(300,500)中的值,这个是为什么?
- 关于安卓6.0获取Mac地址
- java.lang.IllegalArgumentException: column '_id' does not exist
- 全局Application
- I.MX6Q平台Eclipse平台连接不上设备
// do your work.
} cancel() {
isStopped = true;
}
}
Note the key point is : in multithread occasion, var may not be seen immediately by other thread when modified,
but if decorated by volatile, and when there is only one thread do write(modify the var), the other read thread
can see it immediately.It is related to system cache.