Methods Summary |
---|
public long | getId()
return mThread.getId();
|
public void | join()
try {
mThread.join();
} catch (InterruptedException ex) {
// ok?
}
|
public java.lang.Thread | realThread()
return mThread;
|
private synchronized void | setFinished()
mFinished = true;
|
public synchronized void | setName(java.lang.String name)
mThread.setName(name);
|
public synchronized void | setPriority(int androidOsPriority)
while (!mTidSet) {
try {
CameraThread.this.wait();
} catch (InterruptedException ex) {
// ok, try again
}
}
if (!mFinished)
Process.setThreadPriority(mTid, androidOsPriority);
|
private synchronized void | setTid(int tid)
mTid = tid;
mTidSet = true;
CameraThread.this.notifyAll();
|
public synchronized void | start()
mThread.start();
|
public synchronized void | toBackground()
setPriority(Process.THREAD_PRIORITY_BACKGROUND);
|
public synchronized void | toForeground()
setPriority(Process.THREAD_PRIORITY_FOREGROUND);
|