[jboss-dev-forums] [Design of POJO Server] - Re: Locking in DeploymentRepository
jason.greene@jboss.com
do-not-reply at jboss.com
Fri Mar 6 17:22:08 EST 2009
"alesj" wrote :
| Looking at HDScanner's activeScan I think I might get away with
| calling cancel on it, and spinning a bit around until it's done (activeScan.isDone == true)
|
| Or too hack-ish? :-)
Ugh. If you are waiting on a future, use get(), don't spin. Also, if a cancellation is successful, then isDone will immediately be true, even if the thread for the task is still running.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215890#4215890
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215890
More information about the jboss-dev-forums
mailing list