IDEA-79783 Perforce: revert for couple of directories rename marks file as unversioned

This commit is contained in:
peter
2012-01-11 20:30:13 +01:00
parent bc646be36d
commit de6699791d
@@ -140,23 +140,32 @@ public class UpdateRequestsQueue {
@TestOnly
public void waitUntilRefreshed() {
final Semaphore semaphore = new Semaphore();
semaphore.down();
synchronized (myLock) {
final Runnable runnable = new Runnable() {
@Override
public void run() {
semaphore.up();
while (true) {
final Semaphore semaphore = new Semaphore();
semaphore.down();
synchronized (myLock) {
final Runnable runnable = new Runnable() {
@Override
public void run() {
semaphore.up();
}
};
if (myRequestSubmitted && !myStopped) {
myWaitingUpdateCompletionQueue.add(runnable);
} else {
runnable.run();
}
}
if (!semaphore.waitFor(10000)) {
LOG.error("Too long VCS update");
return;
}
synchronized (myLock) {
if (!myRequestSubmitted || myStopped) {
return;
}
};
if (myRequestSubmitted && !myStopped) {
myWaitingUpdateCompletionQueue.add(runnable);
} else {
runnable.run();
}
}
if (!semaphore.waitFor(10000)) {
LOG.error("Too long VCS update");
}
}