"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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...