ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Downing" <jimdown...@pobox.com>
Subject Waiting in a task thread
Date Fri, 27 Apr 2001 13:43:52 GMT
Hi all,
I'm having problems with a section of code in a custom task that attempts to
stall execution for a period. My code uses

Thread.currentThread().wait(sometime);

but throws an IllegalMonitorStateException ("... a thread has attempted to
wait on an object's monitor ... without owning the specified monitor. ")
when the task executes.

What gives? Can I get round it?

thanks,
jim




Mime
View raw message