Is that possible or is it a good idea to call volatile variable from isnside a locked method from anywhere?
volatile myvolatile;
public synchronized void scan() {
myvolatile=1;
scback = new ScanCallback() {
Is that possible or is it a good idea to call volatile variable from isnside a locked method from anywhere?
volatile myvolatile;
public synchronized void scan() {
myvolatile=1;
scback = new ScanCallback() {