hang on linux seems to point to the possibilit of more than one thread waiting on the enque mutex so this change to notifyAll should help

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@903330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-01-26 17:29:00 +00:00
parent def2a34915
commit 4b49834ef6
1 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ class DataFileAppender {
}
nextWriteBatch = new WriteBatch(file, file.getLength(), write);
enqueueMutex.notify();
enqueueMutex.notifyAll();
break;
} else {
// Append to current batch if possible..
@ -327,7 +327,7 @@ class DataFileAppender {
}
enqueueMutex.wait();
}
enqueueMutex.notify();
enqueueMutex.notifyAll();
}
wb = (WriteBatch)o;