mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-79783 Perforce: revert for couple of directories rename marks file as unversioned
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user