[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Locks on MainDeployerImpl
adrian@jboss.org
do-not-reply at jboss.com
Fri Feb 20 07:56:24 EST 2009
"alesj" wrote : "alesj" wrote : I guess if I just write lock the deploy and undeploy lists processing, you should be fine.
| |
| This is not fully sufficient either,
| as one could do addDeployment in between the two write locks in process(),
| and if this new deployment would actually be re-deploy,
| we would only pick up its deploy part, but not the undeploy part. :-(
|
No. The process() uses snapshots of the to(Un)Deploy.
If two threads concurrently do:
add(remove)Deployment()
process()
then they might end up processing each other's stuff but they won't miss one.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211784#4211784
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211784
More information about the jboss-dev-forums
mailing list