mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-07 18:25:14 +00:00
Added consumer thread timeout
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: UpdateAggregator.java,v 1.1 2010/03/26 09:27:58 fros4943 Exp $
|
* $Id: UpdateAggregator.java,v 1.2 2010/03/26 10:11:50 nifi Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.dialogs;
|
package se.sics.cooja.dialogs;
|
||||||
@@ -121,7 +121,7 @@ public abstract class UpdateAggregator<A> {
|
|||||||
while (pending.size() > maxPending) {
|
while (pending.size() > maxPending) {
|
||||||
/* Delay producer thread; events are coming in too fast */
|
/* Delay producer thread; events are coming in too fast */
|
||||||
EventQueue.invokeLater(consume); /* Request immediate consume */
|
EventQueue.invokeLater(consume); /* Request immediate consume */
|
||||||
wait();
|
wait(t.getDelay());
|
||||||
}
|
}
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user